redcarpet icon indicating copy to clipboard operation
redcarpet copied to clipboard

HTML comments are not removed when using `filter_html`

Open bear454 opened this issue 5 years ago • 0 comments

markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(filter_html: true))
markdown.render("Hello, World <i>Boo!</i> <!--comment-->")

 => "<p>Hello, World Boo! &lt;!--comment--&gt;</p>\n"

Shouldn't filter_html remove the comment, instead of escaping it?

bear454 avatar Aug 26 '20 16:08 bear454