UnescapeOptions: {
    isAttributeValue?: boolean;
    strict?: boolean;
}

Options for the HTML unescape function HtmlUnescape - see https://github.com/mathiasbynens/he for more information.

Type declaration

  • Optional isAttributeValue?: boolean

    If not set, it will decode the string as if it is were used in a text context in a HTML document. If set, it will decode the string as if it is were used in an attribute context in a HTML document. Default value is false.

  • Optional strict?: boolean

    If set to true, it will throw an error instead of decoding invalid input. Default value is false.

Generated using TypeDoc