Skip to content

Instantly share code, notes, and snippets.

@hsquareweb
Created August 14, 2012 17:33
Show Gist options
  • Save hsquareweb/3351080 to your computer and use it in GitHub Desktop.
Save hsquareweb/3351080 to your computer and use it in GitHub Desktop.
jQuery: Remove Empty "p" Tags
//remove empty p tags
$("p").filter(function () {
return $.trim($(this).html()) == '';
}).remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment