Module: Omnom::ParserMethods
- Included in:
- Source::Base
- Defined in:
- lib/omnom/parser_methods.rb
Instance Method Summary collapse
Instance Method Details
#html_to_text(html) ⇒ Object
3 4 5 6 |
# File 'lib/omnom/parser_methods.rb', line 3 def html_to_text(html) # Nokogiri transforms to   or \u00a0 Nokogiri::HTML(html).text.gsub(' ', ' ').gsub(/\u00a0/, ' ') end |