title: jQuery to remove <p><br><br></p>
body: <p>What would be the jQuery to remove.</p>
  
  <pre><code>&lt;p&gt;
      &lt;br&gt;
      &lt;br&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I have this</p>
  
  <pre><code>$('p').each(function () {
      if ($.trim($(this).html()) === '&lt;br&gt;') $(this).remove();
  });
  </code></pre>
  
  <p>which removes</p>
  
  <pre><code>&lt;p&gt;
      &lt;br&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>but adding another br like so</p>
  
  <pre><code>$('p').each(function () {
      if ($.trim($(this).html()) === '&lt;br&gt;&lt;br&gt;') $(this).remove();
  });
  </code></pre>
  
  <p>doesn't work. Any help is appreciated.</p>