urlencoder in js code example
Example 1: js escape url parameter
var myUrl = "http://www.image.com/?username=unknown&password=unknown";
var encodedURL= "http://www.foobar.com/foo?imageurl=" + encodeURIComponent(myUrl);
Example 2: type script encode url
var encodeURI = encodeURIComponent("&")