采集的文章中有很多空格和空标签
先使用替换直接删掉,如果不行通过以下代码去掉,正则
<p.+?>\s*</p>
<p.+?>\s*<br>\s*</p>
<section.+?>\s*</section>
<section.+?>\s*<br>\s*</section>
<section.*?>\s*<br>\s*</section> 有效
声明:来自内容团队,仅代表创作者观点。链接:https://eyangzhen.com/708.html