String.prototype.htmlDeentitize = function() {
	return this.replace(/&gt;/g, '>').replace(/&lt;/g, '<').replace(/&quot;/g, '"').replace(/&amp;/g, '&').replace(/&#039;/g, "'");
}

String.prototype.trim = function() {
	return this.replace(/^[ \t\r\n]+/g, '').replace(/[ \t\r\n]+$/g, '');
}