$html="font";
$str="<b style='color:red'>123</b>456<a href='#'>78</a>9<font style='color:red'>789</font>";
@$reg='#\<(\/)?'.$html.'.*?\>#i';
echo $str;
echo "<br>";
echo "去掉特定标签".preg_replace($reg,"",$str);
?>
$html = "所需要去掉的标签" ;
?>
$html = "所需要去掉的标签" ;