Class: SClust::Util::HTMLFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/sclust/util/filters.rb

Instance Method Summary collapse

Methods inherited from Filter

#after, #apply, #before, #initialize

Constructor Details

This class inherits a constructor from SClust::Util::Filter

Instance Method Details

#filter(doc) ⇒ Object



169
170
171
# File 'lib/sclust/util/filters.rb', line 169

def filter(doc)
    Nokogiri::HTML::DocumentFragment.parse(doc).text
end