rewrite & as & so that links will render properly, issue #54

This commit is contained in:
Morgan McMillian 2020-02-02 07:26:42 -08:00
parent c322df38c0
commit c1bbb23daf

View file

@ -20,5 +20,6 @@
function fixPostHtml(data) { function fixPostHtml(data) {
data = data.replace(/<\\?\/?span[^>]*>/g, ""); data = data.replace(/<\\?\/?span[^>]*>/g, "");
data = data.replace(/<br>/g, "<br/>"); data = data.replace(/<br>/g, "<br/>");
data = data.replace(/&/g, "&amp;");
return data; return data;
} }