url decode javascript
snippet in javascript

url decode javascript

user4109


var uri = "https://w3schools.com/my test.asp?name=ståle&car=saab";
var uri_enc = encodeURIComponent(uri);
var uri_dec = decodeURIComponent(uri_enc);
var res = uri_enc + "<br>" + uri_dec;
 

type script edeode url

user7818

var decodeURI = decodeURIComponent("%26")