function DeleteHtml($str) { $str = trim($str); $str = strip_tags($str,""); $str = ereg_replace(" ","",$str); $str = ereg_replace(" ","",$str); $str = ereg_replace(" ","",$str); $str = ereg_replace(" ","",$str); $str = ereg_replace(" "," ",$str); return trim($str); }