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

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

 

posted @ 2015-04-13 22:19  敲着键盘看风景  阅读(270)  评论(0编辑  收藏  举报