String.prototype.sanitizeHTML=function (white,black) {
if (!white) white="b|i|p|br";
if (!black) black="script|object|embed";
var e=new RegExp("(<("+black+")[^>]*>.*</\\2>|(?!<[/]?("+white+")(\\s[^<]*>|[/]>|>))<[^<>]*>|(?!<[^<>\\s]+)\\s[^</>]+(?=[/>]))", "gi");
return this.replace(e,"");
}