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

Function escaper

static/word2md/mammoth.browser.js:29204–29206  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

29202 // Functions for escaping and unescaping strings to/from HTML interpolation.
29203 var createEscaper = function(map) {
29204 var escaper = function(match) {
29205 return map[match];
29206 };
29207 // Regexes for identifying a key that needs to be escaped
29208 var source = '(?:' + _.keys(map).join('|') + ')';
29209 var testRegexp = RegExp(source);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected