The decodeURIComponent() method decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine.
Syntax
decodeURIComponent(encodedURI)
Parameters
encodedURI
An encoded component of a Uniform Resource Identifier.
Description
Replaces each escape sequence in the encoded URI component with the character that it represents.