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