MCPcopy
hub / github.com/pbakaus/scroller / escapeInnerText

Function escapeInnerText

test/qunit.js:902–915  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

900}
901
902function escapeInnerText(s) {
903 if (!s) {
904 return "";
905 }
906 s = s + "";
907 return s.replace(/[\&<>]/g, function(s) {
908 switch(s) {
909 case "&": return "&amp;";
910 case "<": return "&lt;";
911 case ">": return "&gt;";
912 default: return s;
913 }
914 });
915}
916
917function synchronize( callback, last ) {
918 config.queue.push( callback );

Callers 1

qunit.jsFile · 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…