Function HtmlView

Represents an HTML view component.

  • Parameters

    • __namedParameters: IHtmlViewProps<object>

    Returns Element

    The HTML view component.

Properties

Properties

sanitize: ((html: string, config?: Partial<IConfig>) => string)

Type declaration

    • (html, config?): string
    • Sanitizes an HTML string using a sanitizer object. If a sanitizer object is not available, it returns the input HTML string as is.

      Parameters

      • html: string

        The HTML string to sanitize.

      • Optionalconfig: Partial<IConfig>

        Optional configuration object for the sanitizer.

      Returns string

      • The sanitized HTML string or the input HTML string if no sanitizer is available.