rem: return text	.replace(/&/g, "&amp;") .replace(/</g, "&lt;") .replace(/>/g, "&gt;") .replace(/"/g, "&quot;") .replace(/'/g, "&apos;"); 
add: if (typeof text != 'string') return '***[not a string]***';  return text	.replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&apos;'); 
context: xml.escape = function(text){	if (text == '' || text == null)		return text;			return text	.replace(/&/g, "&amp;")					.replace(/</g, "&lt;")					.replace(/>/g, "&gt;")					.replace(/"/g, "&quot;")					.replace(/'/g, "&apos;");}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/774711041c241914e6fab3c51d9c469abad78755/xml.js/buggy/web/geonetwork/scripts/core/kernel/xml.js