Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- escape("% +&=");
- encodeURI("http://www.google.com?var1=value1&var2=value2");
- encodeURIComponent("var1=value1&var2=value2");
- encodeURI("http://www.google.com/a file with spaces.html")
- http://www.google.com/a%20file%20with%20spaces.html
- http%3A%2F%2Fwww.google.com%2Fa%20file%20with%20spaces.html
- param1 = encodeURIComponent("http://xyz.com/?a=12&b=55")
- url = "http://domain.com/?param1=" + param1 + "¶m2=99";
- http://www.domain.com/?param1=http%3A%2F%2Fxyz.com%2F%Ffa%3D12%26b%3D55¶m2=99
Add Comment
Please, Sign In to add comment