1
0
mirror of synced 2024-11-22 21:16:10 +03:00

fixed markup escaping. fixes #290

This commit is contained in:
Igor Vaynberg 2012-08-02 21:50:02 -07:00
parent bef4af91f8
commit b422d4efef

View File

@ -94,7 +94,7 @@
function escapeMarkup(markup) { function escapeMarkup(markup) {
if (markup && typeof(markup) === "string") { if (markup && typeof(markup) === "string") {
return markup.replace("&", "&"); return markup.replace(/&/g, "&");
} else { } else {
return markup; return markup;
} }