$var_con_html = '<b> Hello World </a>'; $var_con_html = ereg_replace( "<[^>]+>", '',$var_con_html ); echo $var_con_html