sanitize
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.'
Types
Docs
Guides
Zeitwerk
Namespace
Optimized
Getting Started
Learn more about the Sanitize gem.
Playground
Test, play and inspect the gem for yourself