首页  >  文章  >  后端开发  >  php去除html标签代码

php去除html标签代码

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

php, html


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