instance method
sanitize_css
Ruby on Rails 5.2.8.1
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 87
def sanitize_css(style)
self.class.white_list_sanitizer.sanitize_css(style)
end
Defined in actionview/lib/action_view/helpers/sanitize_helper.rb line 87
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::SanitizeHelper