Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function cleanHTML

    • Clean a provided HTML fragment, closing unbalanced tags and stripping some undesirable properties

      Parameters

      • raw: string

        A raw HTML string

      • Optionaloptions: { user?: any } = {}
        • Optionaluser?: any

          The user who authored the HTML being cleaned.

      Returns string

      The cleaned HTML content