function encodeURI encodeURI(uri: string): string Encodes a text string as a valid Uniform Resource Identifier (URI) Parameters uri: string A value representing an unencoded URI. Return Type string