php去除html标签代码
- 作者: 浮生一梦醉眼看世界
- 来源: 51数据库
- 2022-08-23
<?
function Text2Html($txt){
$txt = str_replace(" "," ",$txt);
$txt = str_replace("<","<",$txt);
$txt = str_replace(">",">",$txt);
$txt = preg_replace("/[rn]{1,}/isU","
rn",$txt);
return $txt;
}
?>
推荐阅读
