Function encodeURI

    • Encodes a text string as a valid Uniform Resource Identifier (URI)

      Parameters

      • uri: string

        A value representing an unencoded URI.

      Returns string