Method: Loofah::Scrubbers::Strip#scrub

Defined in:
lib/loofah/scrubbers.rb

#scrub(node) ⇒ Object



119
120
121
122
123
124
125
# File 'lib/loofah/scrubbers.rb', line 119

def scrub(node)
  return CONTINUE if html5lib_sanitize(node) == CONTINUE

  node.before(node.children)
  node.remove
  STOP
end