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

Function escapeHtml

static/word2md/word2md.js:125–131  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

123 }
124
125 function escapeHtml(value) {
126 return value
127 .replace(/&/g, '&')
128 .replace(/"/g, '"')
129 .replace(/</g, '&lt;')
130 .replace(/>/g, '&gt;');
131 }
132})();

Callers 1

displayResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected