rem: tmp = tmp.replace("&", "&amp;"); tmp = tmp.replace("<", "&lt;"); tmp = tmp.replace(">", "&gt;"); tmp = tmp.replace(" ", "&nbsp;"); tmp = tmp.replace("\n", "<br />"); tmp = tmp.replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp"); 
add: tmp = tmp.replace(/&/g, "&amp;"); tmp = tmp.replace(/</g, "&lt;"); tmp = tmp.replace(/>/g, "&gt;"); tmp = tmp.replace(/ /g, "&nbsp;"); tmp = tmp.replace(/\n/g, "<br />"); tmp = tmp.replace(/\t/g, "&nbsp;&nbsp;&nbsp;&nbsp"); 
context:     function escapeHTML(s) {	var tmp = s;	tmp = tmp.replace("&", "&amp;");	tmp = tmp.replace("<", "&lt;");	tmp = tmp.replace(">", "&gt;");	tmp = tmp.replace(" ", "&nbsp;");	tmp = tmp.replace("\n", "<br />");	tmp = tmp.replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp");	return tmp;	    }
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0bc8f13bad18ef0f992ba2b90f387c220c907455/runtime.js/buggy/scheme2js/runtime/runtime.js