# Loofah 0.2.2 Released

**URL:** <https://www.ruby-forum.com/t/loofah-0-2-2-released/174656>\
**Category:** Ruby\
**Created:** [August 31, 2009, 6:00am UTC](https://www.ruby-forum.com/t/loofah-0-2-2-released/174656 "2009-08-31T06:00:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [August 31, 2009, 6:00am UTC](https://www.ruby-forum.com/t/loofah-0-2-2-released/174656/1 "2009-08-31T06:00:58Z")

</div>

loofah version 0.2.2 has been released!

- [http://loofah.rubyforge.org/](http://loofah.rubyforge.org/)
- [http://rubyforge.org/projects/loofah](http://rubyforge.org/projects/loofah)
- [http://github.com/flavorjones/loofah](http://github.com/flavorjones/loofah)

Loofah is an HTML sanitizer. It will _always_ fix broken markup, but  
can also sanitize unsafe tags in a few different ways, and transform  
the markup for storage or display.

It’s built on top of Nokogiri and libxml2, so it’s fast. And it uses  
html5lib’s whitelist, so it most likely won’t make your codes less  
secure.

(These statements have not been evaluated by Internet Experts.)

This library was formerly known as Dryopteris.

Changes (since last announcement):

## 0.2.2 (2009-09-30)

Enhancements:

- ActiveRecord extension scrubs fields in a before\_validation callback  
(was previously in a before\_save)

## 0.2.1 (2009-09-19)

Enhancements:

- when loaded in a Rails app, automatically extend ActiveRecord::Base  
with html\_fragment and html\_document. GH #6 (Thanks Josh Nichols!)

Bugfixes:

- ActiveRecord scrubbing should generate strings instead of Document or  
DocumentFragment objects. GH #5
- init.rb fixed to support installation as a Rails plugin. GH #6  
(Thanks Josh Nichols!)

== SUPPORT

The bug tracker is available here:

- [Issues · flavorjones/loofah · GitHub](http://github.com/flavorjones/loofah/issues)

You can also try the Nokogiri mailing list:

- [http://groups.google.com/group/nokogiri-talk](http://groups.google.com/group/nokogiri-talk)

And the IRC channel is #nokogiri on freenode.
