Perseus
    Preparing search index...
    • Take the provided URL and make sure it can be parsed, it's of the expected origin, and has the specified locale.

      If it can't be parsed or if it's not of the expected origin, return null. Setting URL to null will display an error message in the iframe

      Parameters

      • urlString: string

        The URL to make safe.

      • locale: string

        The locale to use for the URL.

      • expectedOrigin: string

        The expected origin of the URL.

      Returns URL | null

      The safe URL, or null if the URL is not safe.