decodeURI function will decode the URI and return the decode string. See the code snippet for decodeURI function.
decodeURI