GeoLeaf Core API - v3.0.0
    Preparing search index...

    Function containsDangerousHtml

    • Check whether a string contains potentially dangerous HTML patterns (XSS vectors).

      Parameters

      • str: unknown

        The value to test. Non-string values return false.

      Returns boolean

      true if dangerous patterns are detected, false otherwise.

      Detects script, iframe, object, embed, base, form, meta, link, event handlers, and dangerous protocols.