MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / escape

Function escape

docs/assets/highlight.js:10–12  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8 /* Utility functions */
9
10 function escape(value) {
11 return value.replace(/&/gm, '&amp;').replace(/</gm, '&lt;');
12 }
13
14 function langRe(language, value, global) {
15 return RegExp(

Callers 7

openFunction · 0.70
mergeStreamsFunction · 0.70
processKeywordsFunction · 0.70
startNewModeFunction · 0.70
processModeInfoFunction · 0.70
highlightFunction · 0.70
highlightBlockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected