ActionView::Helpers::SanitizeHelper
sanitize
API docs (Rails 8.1.4.1) ↗def sanitize(html, options = {})
Description
Returns the HTML with disallowed tags and attributes removed.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params