Loofah and loofah-activerecord 1.0.0

Previous versions of loofah included both basic string sanitization
and ActiveRecord extensions. This release divides these two functions
into separate gems.

If you are using either of the loofah 0.4 ActiveRecord extensions, you
should update the dependency to ‘loofah-activerecord >= 1.0.0’.


loofah 1.0.0 has been released!

Loofah is a general library for manipulating and transforming HTML/XML
documents and fragments. It’s built on top of Nokogiri and libxml2, so
it’s fast and has a nice API.

Loofah excels at HTML sanitization (XSS prevention). It includes some
nice HTML sanitizers, which are based on HTML5lib’s whitelist, so it
most likely won’t make your codes less secure. (These statements have
not been evaluated by Netexperts.)

ActiveRecord extensions for sanitization are available in the
loofah-activerecord gem (see
GitHub - flavorjones/loofah-activerecord: ActiveRecord sanitization using Loofah and Nokogiri).

Changes:

1.0.0 (2010-10-26)

Notes:

  • Moved ActiveRecord functionality into loofah-activerecord gem.

loofah-activerecord version 1.0.0 has been released!

loofah-activerecord extends loofah’s HTML sanitization into Rails
ActiveRecord models with two AR extensions:

  • Loofah::XssFoliate, an XssTerminate drop-in replacement, is an
    opt-out sanitizer. By default all models and attributes are
    sanitized.
  • Loofah::ActiveRecordExtension is an opt-in sanitizer. You must
    explicitly declare attributes to be sanitized.

Changes:

1.0.0 (2010-10-26)

Notes