class TavernKeeper::Scrubber::StripScript

Public Class Methods

new() click to toggle source
# File lib/tavern-keeper/scrubber/script_strip.rb, line 5
def initialize
  @direction = :top_down
end

Public Instance Methods

scrub(node) click to toggle source
# File lib/tavern-keeper/scrubber/script_strip.rb, line 9
def scrub(node)
  return CONTINUE if html5lib_sanitize(node) == CONTINUE
  return CONTINUE if node.name.to_lower == 'style'
  node.remove
  return STOP
end