php去除html标签代码
时间:2021-07-01 10:21:17
帮助过:5人阅读
-
- 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;
- }
- ?>
|
php, html