1
0
mirror of synced 2025-02-04 14:19:23 +03:00

Fixed testing mistake

This commit is contained in:
Jelte Fennema 2013-01-12 17:29:48 +01:00
parent a65c08097e
commit c0dd741a79

View File

@ -2442,16 +2442,15 @@ the specific language governing permissions and limitations under the Apache Lic
escapeMarkup: function (markup) { escapeMarkup: function (markup) {
var replace_map = { var replace_map = {
'\\': '\', '\\': '\',
'&': '&#amp;', '&': '&',
'<': '&#lt;', '<': '&lt;',
'>': '&#rt;', '>': '&gt;',
'"': '&#quot;', '"': '&quot;',
"'": '&#39;', "'": '&apos;',
"/": '&#x2F;' "/": '&#47;'
}; };
//'--': '-&#45;'
return String(html).replace(/[&<>"'/\\]/g, function (match) { return String(markup).replace(/[&<>"'/\\]/g, function (match) {
return replace_map[match[0]]; return replace_map[match[0]];
}); });