]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/wmd/showdown.js
Fixed WMD to correctly show < and > in preview for <code> text
[osqa.git] / 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;
 }