class Shamu::Attributes::HtmlSanitation::NoneScrubber
Public Class Methods
new()
click to toggle source
# File lib/shamu/attributes/html_sanitation.rb, line 158 def initialize @direction = :bottom_up end
Public Instance Methods
scrub( node )
click to toggle source
# File lib/shamu/attributes/html_sanitation.rb, line 162 def scrub( node ) if node.text? Loofah::Scrubber::CONTINUE else node.before node.children node.remove end end