redcloth icon indicating copy to clipboard operation
redcloth copied to clipboard

Why doesn't RedCloth filter <code> tags?

Open george-carlin opened this issue 6 years ago • 0 comments

2.4.1 :003 > RedCloth.new("<div>", [:filter_html]).to_html
 => "&lt;div&gt;" 
2.4.1 :004 > RedCloth.new("<pre>", [:filter_html]).to_html
 => "&lt;pre&gt;" 
2.4.1 :005 > RedCloth.new("<body>", [:filter_html]).to_html
 => "&lt;body&gt;" 
2.4.1 :006 > RedCloth.new("<i>", [:filter_html]).to_html
 => "<p>&lt;i&gt;</p>" 
2.4.1 :007 > RedCloth.new("<code>", [:filter_html]).to_html
 => "<p><code></p>" 

Is this a bug, or a feature?

george-carlin avatar Aug 13 '18 11:08 george-carlin