[Radiant] Commentable behavior

Sean Cribbs seancribbs at gmail.com
Mon Sep 18 06:58:00 CDT 2006


Wolfgang Wopperer wrote:
> Using the Commentable behavior on our new website (www.mindmatters.de), 
> I found that the behavior escapes not only HTML tags, but also quotes in 
> comments – which means that Textile receives them as """ and won’t 
> be able to render links submitted in Textile syntax. Any idea how to 
> avoid this?
>
> Thanks,
> Wolfgang
>
>   
Wolfgang,

I took the "quick-and-dirty" route on that and used CGI.escape_html.  A 
more flexible parser is probably in order.  Maybe one that only escapes 
the <> ?  That would be easy.

Sean Cribbs
seancribbs.com



More information about the Radiant mailing list