Here’s a quick way to remove unwanted empty paragraph tags in WordPress.
If you use WordPress I’m sure you’ve dealt with extra formatting being added to your page by the WordPress TinyMCE editor. The quickest way to shut off this auto formatting is to disable autotop by adding this to your functions.php file:
remove_filter('the_content', 'wpautop');
I’m not a huge fan of that solution however, since I actually want the auto-formatting for the most part, just not the extra/empty paragraph tags. So instead I would use the following code, which simply removes any empty paragraph tags.
$('p:empty').remove();