Member Junction
    Preparing search index...

    Options common to every cleaner.

    interface ContentCleaningOptions {
        ExcludeSelectors?: string[];
        IncludeSelectors?: string[];
        MaxLength?: number;
        NormalizeWhitespace?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    ExcludeSelectors?: string[]

    CSS selectors to remove. Applied after IncludeSelectors. Use for the blocks that survive the include (inline ad slots, share widgets, cookie banners).

    IncludeSelectors?: string[]

    CSS selectors whose content is the ONLY content to keep. When set, everything outside these selectors is discarded before any exclusion is applied.

    This is the highest-leverage knob for messy sources: pointing at .article-body removes navigation, sidebars, and advertising in one stroke, without having to enumerate every block you don't want.

    MaxLength?: number

    Maximum characters to retain; content beyond this is dropped. Unset = no limit.

    NormalizeWhitespace?: boolean

    Collapse runs of whitespace and blank lines. Default: true.