MCPcopy
hub / github.com/fabien-d/alertify.js / escapeInnerText

Function escapeInnerText

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

Source from the content-addressed store, hash-verified

1199}
1200
1201function escapeInnerText( s ) {
1202 if ( !s ) {
1203 return "";
1204 }
1205 s = s + "";
1206 return s.replace( /[\&<>]/g, function( s ) {
1207 switch( s ) {
1208 case "&": return "&amp;";
1209 case "<": return "&lt;";
1210 case ">": return "&gt;";
1211 default: return s;
1212 }
1213 });
1214}
1215
1216function synchronize( callback, last ) {
1217 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…