Re: HTML-sanitizing helper

2009-06-08 Thread Mike Orr
"When in doubt, refuse the temptation to guess." So maybe I should just leave it out of WebHelpers for now in favor of this recipe? I started to put support for safe tags, but took it out because it makes the code significantly more complicated and still doesn't handle the pathological or unbala

Re: HTML-sanitizing helper

2009-06-07 Thread Mark T.
Hi Mike, I had a need for HTML "sanitizing" in the past. When I went searching for existing code to handle the task, I found Genshi provided quite a bit of functionality. However, the terminology they use (and I believe Rails and other libraries) is a little different. Loosely: HTML sanitiz