源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

如何去掉文章里的 html 语法

  • 时间:2022-09-10 01:38 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:如何去掉文章里的 html 语法
<? $a="<font color=red>这是一个带HTML标识的字串</font>"; $a=strip_tags($a); print $a; ?> 2 <? $a="<font color=red>这是一个带HTML标识的字串</font>"; ereg_replace("^<.+>$", "", $a); print $a; ?> 3 保留原有内容 <? $a="<font color=red>这是一个带HTML标识的字串</font>"; ereg_replace("<", "<", $a); ereg_replace(">", ">", $a); print $a; ?>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部