encodeURIComponent
Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
Parameters
uriComponent
A value representing an unencoded URI component.
Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
A value representing an unencoded URI component.