My writers have a bad habit of creating empty paragraphs. (I.e., paragraphs that have nothing inside them, like:
<p></p>
Is there a jQuery function that removes "empty" paragraphs. Here's what I've tried:
$('p').remove(":contains(' ')"); // nope! bad logic, all p's have empty spaces
$("p:empty").remove() // nope, doesn't work, doesn't remove any p's
Anything else I should try?