encode url javascript
snippet in javascript

js url encode

user2323

var urlVar = encodeURI("This text can be passed on a url now");

encode url javascript

user3110


 var uri = "my test.asp?name=ståle&car=saab";
var res = encodeURI(uri); 

type script encode url

user3915

var encodeURI = encodeURIComponent("&")

jq unencode string

user9736

# -r enable raw output

jq -r .[0].string FILE.json