Skip to main content

article_extraction

Function article_extraction 

Source
pub fn article_extraction() -> CleaningOptions
Expand description

Article extraction preset.

Optimized for extracting article content:

  • Removes navigation and layout elements
  • Strips wrapper tags (div, span) while preserving content
  • Removes common advertisement selectors

Best for: News articles, blog posts, content pages.

ยงExample

use html_cleaning::{HtmlCleaner, presets};

let cleaner = HtmlCleaner::with_options(presets::article_extraction());