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) {
var replace_map = {
'\\': '\',
'&': '&#amp;',
'<': '&#lt;',
'>': '&#rt;',
'"': '&#quot;',
"'": '&#39;',
"/": '&#x2F;'
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&apos;',
"/": '&#47;'
};
//'--': '-&#45;'
return String(html).replace(/[&<>"'/\\]/g, function (match) {
return String(markup).replace(/[&<>"'/\\]/g, function (match) {
return replace_map[match[0]];
});