]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixed WMD to correctly show < and > in preview for <code> text
authorjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 15 Aug 2012 13:31:18 +0000 (13:31 +0000)
committerjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 15 Aug 2012 13:31:18 +0000 (13:31 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1277 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/wmd/showdown.js

index c87fd45018de05ca2214eecfc7b8c6cfa79f5625..4054c4ef0335d127031dd7baf231dafb7bb2f72c 100644 (file)
@@ -167,6 +167,9 @@ this.makeHtml = function(text) {
        // attacklab: Restore tildes
        text = text.replace(/~T/g,"~");
 
+       text = text.replace(/&amp;lt;/g,"<");
+       text = text.replace(/&amp;gt;/g,">");
+
        return text;
 }