Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function escapeHtml

    • Escape HTML special characters to prevent XSS injection.

      Escapes & < > " ' — including the apostrophe (&#39;) for defense-in-depth against single-quoted attribute contexts. Callers embedding into either attribute style (double- or single-quoted) are safe.

      Parameters

      • str: string

      Returns string