1
0
Fork 0
forked from 0x2620/oxjs

in Ox.sanitizeHTML, fix a bug with adding links

This commit is contained in:
rolux 2012-05-27 13:11:49 +02:00
commit 17983efc47

View file

@ -409,7 +409,7 @@
}); });
}); });
}); });
html = Ox.addLinks(Ox.encodeHTMLEntities(html)); html = Ox.addLinks(Ox.encodeHTMLEntities(html), true);
matches.forEach(function(match, i) { matches.forEach(function(match, i) {
html = html.replace(new RegExp(salt.join(i)), match); html = html.replace(new RegExp(salt.join(i)), match);
}); });