As the title says I need to remove all <p> tags inside of <li> tags with HTML Purifier.
My input is like this:
<ul>
<li>
<p>111</p>
</li>
<li>
<p>222</p>
</li>
</ul>
<p>333</p>
and it should be cleaned liked this:
<ul>
<li>111</li>
<li>222</li>
</ul>
<p>333</p>
I can't get it to work no matter what I try. I can see a similar thing working in the example. It does work there as inline tag does not allow block children. But <li> is block and does allow <p> by specification. But I still need it out. Please help)