Ryan Leavengood
6/19/2005 8:46:00 PM
Belorion wrote:
> Clearly, the html is not being espcaped, which is contrary to the
> documenation, and not what I expected to happen. Has anyone been able
> to get this to work? Or, alternatively, does anyone know of a library
> that will provide similar functionality? Thanks.
I have a similar requirement in a Rails app I'm writing, and I've just
confirmed this on RedCloth 3.0.3 (which is the same version you have.)
This also presents problems for me, hmmmm.
What it does do is this:
irb(main):019:0> r = RedCloth.new("<img src='foo.jpg'/> *strong*",
[:filter_html])
=> "<img src='foo.jpg'/> *strong*"
irb(main):020:0> r.to_html
=> "<p><img> <strong>strong</strong></p>"
I'm not sure what point it is to break the HTML and even make it
non-XHTML compliant.
Ryan