decodeURI
decodeURI is a built-in JavaScript function used to decode a Uniform Resource Identifier (URI) that has been previously encoded using encodeURI. The purpose of URI encoding is to represent characters that have special meaning in URIs, or characters that are not allowed in URIs, using a percent-sign escape sequence. decodeURI reverses this process, converting these escape sequences back into their original characters.
For example, if a URI contains a space character, encodeURI would represent it as "%20". Calling decodeURI
The syntax for decodeURI is simply decodeURI(encodedURIString). The function takes one argument, which is the URI