<?
/**
* PHP去除html标记
*
* @param
* @author 编程之家 jb51.cc jb51.cc
**/
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;
}
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528724.html