title: remove br tags and leave all other tags
body: <p>I just want to remove the br tags.</p>
  
  <pre><code>'&lt;div class="temp"&gt;some content&lt;br&gt;and more&lt;br&gt;&lt;a href="#"&gt; and more content&lt;/a&gt;&lt;/div&gt;'
  
  $('.temp br').contents().unwrap();
  </code></pre>
  
  <p>why doesn't this work.</p>
  
  <p>I also tried this as I saw it on stackoverflow but didn't work either. What am I doing wrong with both of these.</p>
  
  <pre><code>$('.temp').contents().filter(function() {
    return this.nodeType == 3;
  }).filter('br').remove();
  </code></pre>