Fix HTML escaping in renderer getting renamed by UglifyJS

This commit is contained in:
chylex 2016-10-27 20:12:05 +02:00
parent b7829f09f9
commit 06f8ba529c
2 changed files with 7 additions and 3 deletions

View File

@ -26,6 +26,11 @@
"user",
"msgcount",
"timestamp",
"contents"
"contents",
"&",
"<",
">",
"'",
"\""
]
}

View File

@ -4,8 +4,7 @@ var DOM = (function(){
"<": "&lt;",
">": "&gt;",
'"': '&quot;',
"'": '&#39;',
"/": '&#x2F;'
"'": '&#39;'
};
var entityRegex = /[&<>"'\/]/g;