An object that handles html sanitization.

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

Properties

allowNamedProperties?: boolean

Whether to allow name and id properties.

Methods

  • Returns boolean

    Whether to replace URLs by HTML anchors.

  • Sanitize an HTML string.

    Parameters

    Returns string

    The sanitized string.