instance method
sanitize_css
Ruby on Rails 8.0.4
Since v2.2.3Signature
sanitize_css(style)
Sanitizes a block of CSS code. Used by #sanitize when it comes across a style attribute.
Parameters
-
stylereq
Source
# File actionview/lib/action_view/helpers/sanitize_helper.rb, line 122
def sanitize_css(style)
self.class.safe_list_sanitizer.sanitize_css(style)
end
Defined in actionview/lib/action_view/helpers/sanitize_helper.rb line 122
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::SanitizeHelper