我如何使用preg_replace删除blockquote标记内的每个<p>标记

时间:2019-07-11 13:27:39

标签: php

我只需要删除blockquote内的P标签,如何使用php中的preg_replace删除它?

<p>Another Paragraph</p>
<p>Another Paragraph</p>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">just a couple thirsty boys having a night out in 1985 <a href="some_url">pic.twitter.com/lE6I2Fa04U</a> INI-&gt;4INIAFTER-&gt;1</p>
<p>— Stranger Things (@Stranger_Things) <a href="some_url">June 14, 2019</a> INI-&gt;5INIAFTER-&gt;2</p></blockquote>

0 个答案:

没有答案