MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / escapeHTML

Function escapeHTML

src/lib/console.js:687–692  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

685 }
686
687 function escapeHTML(str) {
688 if (typeof str !== "string") return str;
689 return tag("textarea", {
690 textContent: str,
691 }).innerHTML;
692 }
693})();

Callers 2

formatFunction · 0.85
getStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected