web-manager 3.2.61 → 3.2.62
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/utilities.js +8 -2
- package/package.json +1 -1
package/lib/utilities.js
CHANGED
@@ -110,11 +110,17 @@ Utilities.escapeHTML = function (str) {
|
|
110
110
|
shadow.innerHTML = '';
|
111
111
|
shadow.appendChild(document.createTextNode(str));
|
112
112
|
|
113
|
-
return shadow.innerHTML.replace(/["']/g, function(m) {
|
113
|
+
return shadow.innerHTML.replace(/[&<>"']/g, function(m) {
|
114
114
|
switch (m) {
|
115
|
+
case '&':
|
116
|
+
return '&';
|
117
|
+
case '<':
|
118
|
+
return '<';
|
119
|
+
case '>':
|
120
|
+
return '>';
|
115
121
|
case '"':
|
116
122
|
return '"';
|
117
|
-
|
123
|
+
case "'":
|
118
124
|
return ''';
|
119
125
|
}
|
120
126
|
});
|
package/package.json
CHANGED