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
-
7.0.1
-
source
- 7.0.1 source October 21, 2026 (37 KB)
-
-
7.0.0
-
source
- 7.0.0 source December 30, 2024 (47.5 KB)
-
-
6.1.3
-
source
- 6.1.3 source August 14, 2024 (47 KB)
-
-
6.1.2
-
source
- 6.1.2 source July 27, 2024 (47 KB)
-
-
6.1.1
-
source
- 6.1.1 source June 13, 2024 (46.5 KB)
-