OptionalExcludeCSS selectors to remove, applied after IncludeSelectors (inline ad slots, share widgets).
OptionalIncludeHtml cleaner: keep alt text from images as content.
OptionalIncludeCSS selectors whose content is the ONLY content to keep. The highest-leverage knob: naming the element that holds the article (e.g. '.article-body', 'main') discards navigation, sidebars, and advertising without enumerating what to drop.
OptionalMaxMaximum characters to retain after cleaning.
OptionalNormalizeCollapse runs of whitespace and blank lines. Default true.
OptionalReplaceHtml cleaner: replace the built-in exclusion list rather than appending to it.
Options for the content-cleaning strategy that runs before segmentation.
Garbage that survives cleaning is expensive: it gets embedded, stored, retrieved, and shown to a user or an agent. Navigation chrome repeated across a thousand pages produces a thousand near-identical vectors that crowd out real answers.