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 Netexperts.

Required Ruby Version

None

Authors

Mike Dalessio, Bryan Helmkamp

Versions

  1. 2.25.1 March 17, 2026 (34 KB)
  2. 2.25.0 December 15, 2025 (34 KB)
  3. 2.24.1 May 12, 2025 (33.5 KB)
  4. 2.24.0 January 01, 2025 (33.5 KB)
  5. 2.23.1 October 25, 2024 (33 KB)
  6. 0.3.0 October 07, 2009 (52 KB)
Show all versions (64 total)

SHA 256 checksum