class Rails::HTML::PermitScrubber

def scrub_css_attribute(node)

Experimental RBS support (using type sampling data from the type_fusion project).

def scrub_css_attribute: (Nokogiri::XML::Element node) -> nil

This signature was generated using 23 samples from 1 application.

def scrub_css_attribute(node)
  if Loofah::HTML5::Scrub.respond_to?(:scrub_css_attribute)
    Loofah::HTML5::Scrub.scrub_css_attribute(node)
  else
    style = node.attributes["style"]
    style.value = Loofah::HTML5::Scrub.scrub_css(style.value) if style
  end
end