Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
format
Function · 0.85
getStack
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected