php去除html标签代码
-
原创
-
2016-07-25 08:45:15
1317浏览
-
- function Text2Html($txt){
- $txt = str_replace(" "," ",$txt);
- $txt = str_replace(" $txt = str_replace(">",">",$txt);
- $txt = preg_replace("/[rn]{1,}/isU","
- rn",$txt);
- return $txt;
- }
- ?>
复制代码
|
php, html
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。