首页 > Web开发 > 详细

正则匹配 去掉 多余的js和html标签

时间:2015-04-14 00:12:52      阅读:188      评论:0      收藏:0      [点我收藏+]
技术分享
1 $reg17 = ‘/><strong>公司介绍<\/strong><\/td>([\S\s*]+?)<\/div>/‘;
2 
3 $this->data[‘introduction‘] = preg_replace("‘<script(.*?)<\/script>‘is","",$this->data[‘introduction‘]);
4 
5 $this->data[‘introduction‘]= strip_tags($this->data[‘introduction‘],‘<br>‘);
View Code

 

正则匹配 去掉 多余的js和html标签

原文:http://www.cnblogs.com/qzjpkfj/p/4423490.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!