我们为大家收集整理了关于php去除html标签,以方便大家参考。
<?php
//取出br标记
function strip($str)
{
$str=str_replace("<br>","",$str);
//$str=htmlspecialchars($str);
return strip_tags($str);
}
?>
希望大家可以学会php去除html标签.想了解更多精彩内容,请关注我们的网站!
相关推荐:
怎么让js过滤html标签