title: Javascript Regular expression to remove unwanted <br>, &nbsp;
body: <p>I have a JS stirng like this<br>
  <code>&amp;lt;div id="grouplogo_nav"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ul&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a class="group_hlfppt" target="_blank" href="http://www.hlfppt.org/"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ul&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;</code>   </p>
  
  <p>I need to remove all <code>&lt;br&gt;</code> and <code>$nbsp;</code> that are only between <code>&amp;gt;</code> and <code>&amp;lt;</code>. I tried to write a regular expression, but didn't got it right. Does anybody have a solution.</p>
  
  <p><strong>EDIT :</strong>   </p>
  
  <p>Please note i want to remove only the tags b/w <code>&amp;gt;</code> and <code>&amp;lt;</code></p>