MCPcopy Index your code
hub / github.com/python/cpython / escapeHtml

Function escapeHtml

Lib/profiling/sampling/_heatmap_assets/heatmap.js:673–677  ·  view source on GitHub ↗

* Escape HTML special characters * @param {string} text - Text to escape * @returns {string} Escaped HTML

(text)

Source from the content-addressed store, hash-verified

671 * @returns {string} Escaped HTML
672 */
673function escapeHtml(text) {
674 const div = document.createElement('div');
675 div.textContent = text;
676 return div.innerHTML;
677}
678
679/**
680 * Toggle all bytecode panels at once

Callers 1

populateBytecodePanelFunction · 0.85

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…