Encode a URLTag(s): Language
escape() encodes most of the stuff you need to encode. It misses single and double quotes, so you should replace those manually.
function URLencode(sStr) {
return escape(sStr)
.replace(/\+/g, '%2B')
.replace(/\"/g,'%22')
.replace(/\'/g, '%27');
}
Encode the following URL : www.google.com/search?q=Real's HowTo
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com