RubyGems.org

sanitize

3.0.0

Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of acceptable elements, attributes, and CSS properties, Sanitize will remove all unacceptable HTML and/or CSS from a string.

installgem install sanitize
Authors

Ryan Grove

1,508,328 total downloads 11,546 for this version
Owners

683e9380d7cc0724a35dadfb4eeb142b

Licenses

MIT

Gemfile
gem 'sanitize', '~> 3.0.0'
Versions
  1. 3.0.0 June 21, 2014 (34 KB)
  2. 2.1.0 January 13, 2014 (20.5 KB)
  3. 2.0.6 July 11, 2013 (19.5 KB)
  4. 2.0.5 July 10, 2013 (19.5 KB)
  5. 2.0.4 June 12, 2013 (15.5 KB)
Show all versions (35 total)
Ruby Dependency
  1. >= 1.9.2