Class Sanitizer

A class to sanitize HTML strings.

Hierarchy

  • Sanitizer

Implements

Constructors

Properties

_autolink: any
_options: any

Methods

  • Returns boolean

    Whether to replace URLs by HTML anchors.

  • Sanitize an HTML string.

    Parameters

    Returns string

    The sanitized string.

  • Set the allowed schemes

    Parameters

    • scheme: string[]

      Allowed schemes

    Returns void

  • Set the URL replacement boolean.

    Parameters

    • autolink: boolean

      URL replacement boolean.

    Returns void

Generated using TypeDoc