Sanitize is an allowlist-based HTML and CSS sanitizer. It removes all HTML and/or CSS from a string except the elements, attributes, and properties you choose to allow.

Required Ruby Version

>= 3.1.0

Authors

Ryan Grove

Versions

  1. 7.0.1
    1. source

      1. 7.0.1 source October 21, 2026 (37 KB)
  2. 7.0.0
    1. source

      1. 7.0.0 source December 30, 2024 (47.5 KB)
  3. 6.1.3
    1. source

      1. 6.1.3 source August 14, 2024 (47 KB)
  4. 6.1.2
    1. source

      1. 6.1.2 source July 27, 2024 (47 KB)
  5. 6.1.1
    1. source

      1. 6.1.1 source June 13, 2024 (46.5 KB)
Show all versions (72 total)

Pushed by

SHA 256 checksum