From: javyer Date: Wed, 15 Aug 2012 13:31:18 +0000 (+0000) Subject: Fixed WMD to correctly show < and > in preview for text X-Git-Tag: live~40 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/ac7428c4b191d718cf8171fcb57ddab881f61b25 Fixed WMD to correctly show < and > in preview for text git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1277 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/js/wmd/showdown.js b/forum/skins/default/media/js/wmd/showdown.js index c87fd45..4054c4e 100644 --- a/forum/skins/default/media/js/wmd/showdown.js +++ b/forum/skins/default/media/js/wmd/showdown.js @@ -167,6 +167,9 @@ this.makeHtml = function(text) { // attacklab: Restore tildes text = text.replace(/~T/g,"~"); + text = text.replace(/&lt;/g,"<"); + text = text.replace(/&gt;/g,">"); + return text; }