MCPcopy Create free account
hub / github.com/unconed/TermKit / escapeText

Function escapeText

HTML/termkit.js:40–42  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

38}
39
40function escapeText(text) {
41 return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
42}
43
44function bug(object, type) {
45 $.each(object, function (index) {

Callers 3

token.jsFile · 0.85
updateStateFunction · 0.85
commandcontext.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected