php去除html标签代码

2015-03-19 0 666
php去除html标签代码
<? 
function Text2Html($txt){ 
        $txt = str_replace("  "," ",$txt); 
        $txt = str_replace("<","&lt;",$txt); 
        $txt = str_replace(">","&gt;",$txt); 
        $txt = preg_replace("/[rn]{1,}/isU"," 
rn",$txt); 
        return $txt; 
} 

?> 

遇见资源网 php php去除html标签代码 http://www.ox520.com/7515.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务