I would like to remove any <br>
tag which comes up just before a closing </p>
tag.
For example this is ok :
<p>Bla bla bla <br>
bla bla
</p>
But this is NOT ok :
<p>Bla bla bla <br>
</p>
In other words, every time I have :
<br> + white space or tab or new line or whatever providing no content + </p>
Then, I want to remove that <br>
.
How would this be achieved with javascript Regex ? (or any other javascript way)