class Rails::HTML::PermitScrubber

def scrub(node)

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

def scrub: (Nokogiri::XML::Text node) -> Object

This signature was generated using 1 sample from 1 application.

def scrub(node)
  if Loofah::HTML5::Scrub.cdata_needs_escaping?(node)
    replacement = Loofah::HTML5::Scrub.cdata_escape(node)
    node.replace(replacement)
    return CONTINUE
  end
  return CONTINUE if skip_node?(node)
  unless (node.element? || node.comment?) && keep_node?(node)
    return STOP unless scrub_node(node) == CONTINUE
  end
  scrub_attributes(node)
  CONTINUE
end