fixed markup escaping. fixes #290
This commit is contained in:
parent
bef4af91f8
commit
b422d4efef
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user