正则匹配 去掉 多余的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

 

你可能感兴趣的:(html标签)