From ac7428c4b191d718cf8171fcb57ddab881f61b25 Mon Sep 17 00:00:00 2001 From: javyer Date: Wed, 15 Aug 2012 13:31:18 +0000 Subject: [PATCH] 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 --- forum/skins/default/media/js/wmd/showdown.js | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5