MCPcopy
hub / github.com/botui/botui / escape

Function escape

Gulpfile.js:14–16  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

12 minify = require('gulp-clean-css');
13
14function escape (text) {
15 return text.replace(/'/g, "\\'").replace(/"/g, "\\\"");
16}
17
18function htmlTemplate() {
19 return replace('BOTUI_TEMPLATE', escape(

Callers 1

htmlTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…