Module: Perron::Resource::Sweeper
- Extended by:
- ActiveSupport::Concern
- Included in:
- Perron::Resource
- Defined in:
- lib/perron/resource/sweeper.rb
Instance Method Summary collapse
Instance Method Details
#extracted_headings ⇒ Object
8 9 10 |
# File 'lib/perron/resource/sweeper.rb', line 8 def extracted_headings extract_heading_texts(from: rendered_document) end |
#sweeped_content ⇒ Object
12 13 14 15 16 |
# File 'lib/perron/resource/sweeper.rb', line 12 def sweeped_content ActionView::Base.full_sanitizer.sanitize( rendered_document.text.gsub(/\s+/, " ").strip ) end |