The decodeURIComponent() function can decode the URI encoded by the encodeURIComponent() function .
Usage: decodeURIComponent(URIstring)
URIstring |
required. A string containing encoded URI components or other text to decode. |
encodeURIComponent() function
Function: The character string can be encoded as a URI component. It returns a copy of the URIstring with some characters replaced by hexadecimal escape sequences .