EU Parliament Monitor — API Documentation - v0.9.0
    Preparing search index...
    • Validate and brand a string as an absolute HTTPS URL. Validates using new URL() to ensure structural correctness, checks that the protocol is https:, and rejects characters that are unsafe in HTML attribute contexts (quotes, angle brackets, whitespace, control characters) to prevent attribute-injection/XSS.

      Parameters

      • url: string

        Candidate URL string

      Returns AbsoluteUrl

      Branded AbsoluteUrl

      when url is not a valid absolute HTTPS URL or contains characters unsafe for HTML attribute interpolation