function stripHTML(str){

	// remove all string within tags

	var tmp = str.replace(/(<.*['"])([^'"]*)(['"]>)/g, 

	function(x, p1, p2, p3) { return  p1 + p3;}

	);

	// now remove the tags

	return tmp.replace(/<\/?[^>]+>/gi, '');

}

