Tiggles ツ of Speak Creative
11/28/2018 - 5:41 PM

remove-empty-tags.js

This snippet will grab any

tags that are empty (bugs), and remove them.

$(document).ready(function() {
  $('p').each(function() {
      var $this = $(this);
      if($this.html().replace(/\s| /g, '').length == 0)
          $this.remove();
  });
});