From f5bca3dc9693f0d1078c140643776763dec34301 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 19 Aug 2011 09:00:38 +0000 Subject: [PATCH] Remove HTML clean up from code highlighting as it's done by callee --- ux/Showdown.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ux/Showdown.js b/ux/Showdown.js index 70a372947f..e519c19850 100644 --- a/ux/Showdown.js +++ b/ux/Showdown.js @@ -951,14 +951,19 @@ Roo.ux.Showdown.converter = function() { // Encode/escape certain characters inside Markdown code runs. // The point is that in code, these characters are literals, // and lose their special Markdown meanings. + + // REMOVED - Data going into markdown should be encoded before it enters.. + // // Encode all ampersands; HTML entities are not // entities within a Markdown code span. - text = text.replace(/&/g,"&"); + + + //text = text.replace(/&/g,"&"); // Do the angle bracket song and dance: - text = text.replace(//g,">"); + //text = text.replace(//g,">"); // Now, escape characters that are magic in Markdown: text = escapeCharacters(text,"\*_{}[]\\",false); -- 2.39.2