I'm trying to replace double generated </p>
with:
$excerpt = str_replace('</p></p>', '</p>', $excerpt);
But my PHP generates a lot of spaces between first </p>
and second </p>
How to remove all spaces between the </p>
tags?
My string looks like that:
<blockquote>
<p>Text</p> <!-- here's unknown amount of space generated by php --> </p>
</blockquote>
This is related to this question on WordPress Stackexchange.