php去除html标签代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<? 
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; 
} 

?>