MCPcopy
hub / github.com/csev/py4e / htmlEscape

Function htmlEscape

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:3190–3193  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3188
3189 var escapeElement = document.createElement("pre");
3190 function htmlEscape(str) {
3191 escapeElement.textContent = str;
3192 return escapeElement.innerHTML;
3193 }
3194 // Recent (late 2011) Opera betas insert bogus newlines at the start
3195 // of the textContent, so we strip those.
3196 if (htmlEscape("a") == "\na")

Callers 2

span_Function · 0.85
codemirrorepl.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected