HTML::WhiteListSanitizer

class HTML::WhiteListSanitizer

Parent:
HTML::Sanitizer

Public Instance Methods

sanitize_css(style) Show source

Sanitizes a block of css code. Used by sanitize when it comes across a style attribute

# File actionview/lib/action_view/vendor/html-scanner/html/sanitizer.rb, line 119
def sanitize_css(style)
  # disallow urls
  style = style.to_s.gsub(/u