function strip_tag($text, $tag) { return ereg_replace('</?'.$tag.'[^>]*>', '', $text);} echo strip_tag($text, 'font');