replacements in utils global

This commit is contained in:
James Tomasino 2023-01-22 15:50:09 +00:00
parent 608146d47a
commit 40c9ec9de6

View File

@ -44,7 +44,7 @@ function wc (path) {
} }
function escape (text) { function escape (text) {
return text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('"', '&quot;').replace("'", '&#x27;') return text.replace(/\&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;')
} }
module.exports = { module.exports = {