The options used to sanitize.

interface ISanitizerOptions {
    allowedAttributes?: {
        [key: string]: string[];
    };
    allowedStyles?: {
        [key: string]: {
            [key: string]: RegExp[];
        };
    };
    allowedTags?: string[];
}

Properties

allowedAttributes?: {
    [key: string]: string[];
}

The allowed attributes for a given tag.

Type declaration

  • [key: string]: string[]
allowedStyles?: {
    [key: string]: {
        [key: string]: RegExp[];
    };
}

The allowed style values for a given tag.

Type declaration

  • [key: string]: {
        [key: string]: RegExp[];
    }
allowedTags?: string[]

The allowed tags.