Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML sanitizers, which are based on HTML5lib's safelist, 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](https://github.com/flavorjones/loofah-activerecord).

Required Ruby Version

>= 0

Authors

Mike Dalessio, Bryan Helmkamp

Versions

  1. 2.25.2 July 15, 2026 (36 KB)
  2. 2.25.1 March 17, 2026 (34 KB)
  3. 2.25.0 December 15, 2025 (34 KB)
  4. 2.24.1 May 12, 2025 (33.5 KB)
  5. 2.24.0 January 01, 2025 (33.5 KB)
  6. 2.18.0 May 11, 2022 (30.5 KB)
Show all versions (65 total)

Pushed by

SHA 256 checksum