decodes only characters that would have been replaced by using encodeURI()
Description
The decodeURI() method decodes only characters that would have been replaced by using encodeURI().
Example
var uri = "http%3A%2F%2Fwww.java2s.com%2Fillegal%20value.htm%23start";
console.log(decodeURI(uri));
console.log(decodeURIComponent(uri));
The code above generates the following result.