jgarber / redcloth

RedCloth is a Ruby library for converting Textile into HTML.
Other
445 stars 102 forks source link

Why doesn't RedCloth filter <code> tags? #53

Open george-carlin opened 6 years ago

george-carlin commented 6 years ago
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?