php去除html标签代码

原创
2016-07-25 08:45:15 1317浏览
  1. function Text2Html($txt){
  2. $txt = str_replace(" "," ",$txt);
  3. $txt = str_replace(" $txt = str_replace(">",">",$txt);
  4. $txt = preg_replace("/[rn]{1,}/isU","
  5. rn",$txt);
  6. return $txt;
  7. }
  8. ?>
复制代码

php, html


声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。