MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / escapeHTML

Function escapeHTML

debug-plugin/content-script.js:57–64  ·  view source on GitHub ↗
(unsafe)

Source from the content-addressed store, hash-verified

55 }
56
57 function escapeHTML(unsafe) {
58 return unsafe
59 .replace(/&/g, "&")
60 .replace(/</g, "&lt;")
61 .replace(/>/g, "&gt;")
62 .replace(/"/g, "&quot;")
63 .replace(/'/g, "&#039;");
64 }
65
66 function truncate(str, len) {
67 if (str.length <= len) return str;

Callers 3

renderCodeFunction · 0.70
makeConsoleHistoryEntryFunction · 0.70
prettyPrintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected