decodeURI

decodeURI

Description

decodeURI(string encodedUri)

Parameters

Name Description Type Default Optional
encodedUri string No

Examples

Example #1 – decodeURI example
var uri = decodeURI('http://example.com/%7B%22foo%22:%20%5B%22bar%22%5D%7D'); console.log(uri); // http://example.com/{"foo": ["bar"]}

See also

External references