MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / escapeHTML

Function escapeHTML

docs/src/assets/search.js:3–5  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

1const root = document.currentScript.src.split("/").slice(0, -1).join("/");
2
3function escapeHTML(html) {
4 return document.createElement('div').appendChild(document.createTextNode(html)).parentNode.innerHTML;
5}
6
7const originalContent = document.querySelector("main");
8let currentContent = originalContent;

Callers 1

onInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…