An object that handles html sanitization.

interface ISanitizer {
    allowCommandLinker?: boolean;
    allowNamedProperties?: boolean;
    getAutolink(): boolean;
    getIncrementalAutolink(): boolean;
    sanitize(dirty: string, options?: IRenderMime.ISanitizerOptions): string;
}

Implemented by

Properties

allowCommandLinker?: boolean

Whether to allow command linker attributes.

allowNamedProperties?: boolean

Whether to allow name and id properties.

Methods

  • Returns boolean

    Whether URLs in large textual outputs are auto-linked incrementally (asynchronously, across animation frames) rather than in a single synchronous pass.

    When incremental, the text is shown first and links appear shortly after, keeping the UI responsive; disabling it also disables incremental rendering of the text itself (everything is rendered in one blocking pass, so links appear together with the text at first paint).

    When not implemented, incremental auto-linking is assumed.