Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index 6115930b6c8ff69568f425b8b996a821bc93cb87..eaeb198dce85366d5e3759ec4a649fe586f85991 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -825,10 +825,7 @@ function StringFromCharCode(code) { |
// Helper function for very basic XSS protection. |
function HtmlEscape(str) { |
- return TO_STRING_INLINE(str).replace(/</g, "<") |
- .replace(/>/g, ">") |
- .replace(/"/g, """) |
- .replace(/'/g, "'"); |
+ return TO_STRING_INLINE(str).replace(/"/g, """); |
} |