Wednesday, March 26, 2008

Introducing Whistler

With all the posts about merbful_athentication lately, you'd think that was all I was working on. It's not quite the case. A lot of it isn't looking like going OS, but I've been able extract something from one of my project.

Whistler is a markup white list filter. It's based on the specs of Rick Olson's WhiteList rails plugin and runs on hpricot.

Usage is super simple. You can either include it into your model, or use it directly.
Whistler.white_list(markup_string)
That's it. There are ways of using different tags and attributes on each call. Check out the source at http://github.com/hassox/whistler