1
0
Fork 0

replacements in utils global

This commit is contained in:
James Tomasino 2023-01-22 15:50:09 +00:00
parent 608146d47a
commit 40c9ec9de6
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function wc (path) {
}
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 = {