title: Replace multiple <br>'s with only one <br>
body: <p>How do I use JavaScript to detect</p>
  
  <pre><code>&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  </code></pre>
  
  <p>to become one </p>
  
  <pre><code>&lt;br&gt;
  </code></pre>
  
  <p>?</p>
  
  <p>I tried with:</p>
  
  <pre><code>jQuery('body').html().replace(/(\&lt;br\&gt;\r\n){3, }/g,"\n");
  </code></pre>
  
  <p>but this is not working for me.</p>