rem: varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } urlVars[0] = encodeURIComponent(urlVars[0]); urlVars[1] = encodeURIComponent(urlVars[1]); varArray[i] = urlVars.join("="); } return varArray.join('&'); } 
add: varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } urlVars[0] = encodeURIComponent(urlVars[0]); urlVars[1] = encodeURIComponent(urlVars[1]); varArray[i] = urlVars.join("="); } return varArray.join('&'); } 
context: 	this.encodeURLString = function(string){		varArray = string.split('&');		for (i = 0; i < varArray.length; i++){			urlVars = varArray[i].split('=');			if (urlVars[0].indexOf('amp;') != -1){				urlVars[0] = urlVars[0].substring(4);			}			urlVars[0] = encodeURIComponent(urlVars[0]);			urlVars[1] = encodeURIComponent(urlVars[1]);			varArray[i] = urlVars.join("=");		}	return varArray.join('&');	}
meta: 5490	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5490/8cbcbff7d52f21e65c1a52b07ff5767f70e49f54/tw-sack.js/clean/tw-sack.js