MCPcopy Index your code
hub / github.com/nodejs/node / escapeContent

Function escapeContent

lib/internal/test_runner/reporter/junit.js:25–27  ·  view source on GitHub ↗
(s = '')

Source from the content-addressed store, hash-verified

23}
24
25function escapeContent(s = '') {
26 return RegExpPrototypeSymbolReplace(/</g, RegExpPrototypeSymbolReplace(/(&)(?!#\d{1,7};)/g, s, '&amp;'), '&lt;');
27}
28
29function escapeComment(s = '') {
30 return RegExpPrototypeSymbolReplace(/--/g, s, '&#45;&#45;');

Callers 2

escapeAttributeFunction · 0.85
treeToXMLFunction · 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…