Home > Backend Development > PHP Tutorial > 求去除div标签解决方法

求去除div标签解决方法

WBOY
Release: 2016-06-13 13:37:21
Original
1450 people have browsed it

求去除div标签
PHP, 抓取网页源码后,把所有DIV标签去除掉, 正则表达式怎么写?

比如

这样的标签去掉

------解决方案--------------------
上面还欠缺。更正:
echo preg_replace('#]*>#is','',$str);
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template