rem: text = text.replace(/&(.*?);/g, function(str, p1) { switch (p1) { case "nbsp": return " "; case "amp": return "&"; case "lt": return "<"; case "gt": return ">"; case "quot": return '"'; 
add: var text = texts.map(function(string) { if (string.length > 0 && string[0] == '<') {  var regExpRes = string.match(/^<img.*?alt\s*=\s*['"](.*)["']/i) if (regExpRes) { return regExpRes[1]; } else { return ""; } } else {  return string.replace(/&([^;]+);/g, function(str, p1) { switch (p1) { case "nbsp": return " "; case "amp": return "&"; case "lt": return "<"; case "gt": return ">"; case "quot": return '"'; } return " "; }); 
context: 	text = text.replace(/&(.*?);/g, function(str, p1) {			switch (p1) {				case "nbsp": return " ";				case "amp": return "&";				case "lt": return "<";				case "gt": return ">";				case "quot": return '"';			}			return " ";	});
meta: 4572	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4572/fe87cff13ce4ff694497c16046d79fb2766d3f12/globals.js/buggy/content/colorediffs/globals.js