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

Authors

Ryan Grove

Versions

  1. 7.0.3
    1. source

      1. 7.0.3 source December 01, 2026 (40 KB)
  2. 7.0.2
    1. source

      1. 7.0.2 source November 02, 2026 (39 KB)
  3. 7.0.1
    1. source

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

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

      1. 6.1.3 source August 14, 2024 (47 KB)
Show all versions (74 total)

Pushed by

SHA 256 checksum