Is there a way to remove this
<p> </p>
using jQuery?
Is there a way to remove this
<p> </p>
using jQuery?
This could be a better solution for CMSs. Some rich text editors add inside empty paragraphs.
$("p").filter( function() {
var html = $(this).html();
if(html == '' || html == ' ')
return true;
}).addClass('emptyP');