web-manager 3.2.61 → 3.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/utilities.js +8 -2
  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 '&amp;';
117
+ case '<':
118
+ return '&lt;';
119
+ case '>':
120
+ return '&gt;';
115
121
  case '"':
116
122
  return '&quot;';
117
- default:
123
+ case "'":
118
124
  return '&#039;';
119
125
  }
120
126
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.61",
3
+ "version": "3.2.62",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {