GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Escape dangerous HTML characters to prevent XSS.

      Parameters

      • str: string | null | undefined

        The string to escape. Null or undefined returns "".

      Returns string

      The HTML-escaped string, safe for use in DOM text contexts.

      Sanitizes arbitrary strings against HTML injection by escaping <, >, &, ", ' to entities.