A class to sanitize HTML strings.

Implements

Constructors

Accessors

Methods

  • Set the allowed schemes

    Parameters

    • scheme: string[]

      Allowed schemes. Automatically regenerates sanitizer options to apply the change. Note: the schemes merge into the current config and does not get overwritten.

    Returns void

  • Set the whether to allow name and id attributes.

    Parameters

    • allowNamedProperties: boolean

    Returns void