",$txt); $txt = preg_replace("/[rn]{1,}/isU"," rn",$txt); return $txt; } ?> php, html">
当前位置:Gxlcms > PHP教程 > php去除html标签代码

php去除html标签代码

时间:2021-07-01 10:21:17 帮助过:5人阅读

  1. function Text2Html($txt){
  2. $txt = str_replace(" "," ",$txt);
  3. $txt = str_replace("<","<",$txt);
  4. $txt = str_replace(">",">",$txt);
  5. $txt = preg_replace("/[rn]{1,}/isU","
  6. rn",$txt);
  7. return $txt;
  8. }
  9. ?>

php, html

人气教程排行