MCPcopy Create free account
hub / github.com/TruthHun/BookStack / escaper

Function escaper

static/bootstrap-select-1.13.18/js/bootstrap-select.js:562–564  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

560 // Functions for escaping and unescaping strings to/from HTML interpolation.
561 var createEscaper = function (map) {
562 var escaper = function (match) {
563 return map[match];
564 };
565 // Regexes for identifying a key that needs to be escaped.
566 var source = '(?:' + Object.keys(map).join('|') + ')';
567 var testRegexp = RegExp(source);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected