title: Remove extra br tags with JS
body: <p>I have a post which contains extra line breaks and want to limit the post to only show one linebreak. I thought this css might work..</p>
  
  <pre><code>br+br{display:none}
  </code></pre>
  
  <p>but since the text is not wrapped in its own element all the line breaks in the post are siblings and this doesn't work... now I am trying to solve this with JS...</p>
  
  <pre><code>content.replace(/&lt;br&gt;&lt;br&gt;/g,'&lt;br&gt;')
  </code></pre>
  
  <p>Why is this only replacing the first set of linebreaks that are next to each other? (I need to run it multiple times to get the effect I want of <strong>all</strong> uneccesary line breaks being removed)
  and what should I do instead?</p>