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.

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

The allowed style values for a given tag.

allowedTags?: string[]

The allowed tags.