Is there a way to remove this
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');