From: Alan Knowles Date: Fri, 19 Aug 2011 09:00:38 +0000 (+0800) Subject: ux/Showdown.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=c914089ef18cc75a95d3040fc103a405a36b52a9 ux/Showdown.js --- 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);