Commentable behavior

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 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 C.
seancribbs.com

Yeah, that sounds like the right thing to do. I will see if I get it
changed in the next couple of days - if I’m the first to change it, I’ll
post the changed code here.

Thanks,
Wolfgang