I have a string like below
<img alt="rlogo" src="https://something.net/logo.gif/resized_logo.png?r=3" />
<p>
<strong>Headquarters:</strong> Austin, TX
<br /><strong>URL:</strong> <a href="https://something.com/F402B805CC">https://something.com/j/F402B805CC</a>
</p>
Lorem ipsum dollar sit amet
I want to remove everything except "Lorem ipsum dollar sit amet", So far i managed to remove image tag using
preg_replace('<img alt=\"rlogo\".*>','',$description)
But the same doesnt work for <p>
tag because there is new line after <p>
tag.
Is there way i can remove everything starting from <img
till </a></p>