MCPcopy
hub / github.com/zxlie/FeHelper / esc

Function esc

apps/code-beautify/content-script.js:85–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 };
84
85 let esc = s => s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
86 let span = (cls, text) => '<span class="hl-' + cls + '">' + esc(text) + '</span>';
87
88 let JS_KW = new Set('break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super,implements,interface,let,package,private,protected,public,static,yield,of,async,await,from'.split(','));

Callers 4

spanFunction · 0.85
highlightJSFunction · 0.85
highlightCSSFunction · 0.85
beautyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected