GeoLeaf Core API - v3.0.0
    Preparing search index...

    How aggressively to sanitise an HTML fragment.

    ⚠️ stripAll and allowedTags are not additive: stripAll removes every tag and wins outright, so an allowedTags list passed alongside it is silently ineffective.

    interface SanitizeHtmlOptions {
        stripAll?: boolean;
        allowedTags?: string[];
    }
    Index

    Properties

    stripAll?: boolean

    Remove all tags, keeping text only. Overrides SanitizeHtmlOptions.allowedTags.

    allowedTags?: string[]

    Tag names kept; everything else is stripped. Ignored when stripAll is set.