class Loofah::Scrubbers::Prune


=> “ohai! <div>div is safe</div> ”
Loofah.html5_fragment(unsafe_html).scrub!(:prune)
unsafe_html = “ohai! <div>div is safe</div> <foo>but foo is not</foo>”
:prune removes unknown/unsafe tags and their contents (including their subtrees):
=== scrub!(:prune)

def initialize # rubocop:disable Lint/MissingSuper

rubocop:disable Lint/MissingSuper
def initialize # rubocop:disable Lint/MissingSuper
  @direction = :top_down
end

def scrub(node)

def scrub(node)
  return CONTINUE if html5lib_sanitize(node) == CONTINUE
  node.remove
  STOP
end