class Rails::HTML::PermitScrubber

def scrub_attributes(node)

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

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

This signature was generated using 15 samples from 1 application.

def scrub_attributes(node)
  if @attributes
    node.attribute_nodes.each do |attr|
      attr.remove if scrub_attribute?(attr.name)
      scrub_attribute(node, attr)
    end
    scrub_css_attribute(node)
  else
    Loofah::HTML5::Scrub.scrub_attributes(node)
  end
end