Bug 36382: (QA follow-up) Don't escape quotes in escapeHtml
This commit is contained in:
parent
a9a2b68619
commit
0a53dabd14
1 changed files with 1 additions and 3 deletions
|
@ -19,9 +19,7 @@ function formatstr(str, col) {
|
|||
var HtmlCharsToEscape = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
"'": ''',
|
||||
'"': '"'
|
||||
'>': '>'
|
||||
};
|
||||
String.prototype.escapeHtml = function() {
|
||||
return this.replace(/[&<>]/g, function(c) {
|
||||
|
|
Loading…
Reference in a new issue