MCPcopy Index your code
hub / github.com/microsoft/SandDance / innerText

Function innerText

docs/app/js/sanddance-app.js:123998–123998  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

123996 return s.length ? s[0].toUpperCase() + s.slice(1) : s;
123997}
123998const innerText = (val)=>(val + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
123999const attrText = (val)=>innerText(val).replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;");
124000function markup() {
124001 let buf = "", outer = "", inner = "";

Callers 2

attrTextFunction · 0.70
markupFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected