GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Validates a URL against the allowed protocols and returns it resolved.

      The low-level form behind GeoLeaf.Validators.validateUrl — same protocol allow-list, which is what keeps javascript: out of attributes built from profile data.

      Parameters

      • url: string | null | undefined
      • allowedProtocols: string[] = ...

      Returns string | null