title: Javascript RegEx matching a string inside HTML tags
body: <p>I've got a pretty weird situation here. I have got a string that looks something like this:</p>
  
  <pre><code>&lt;tag&amp;nbsp;class="bla"&gt;hey&amp;nbsp;there&amp;nbsp;&lt;/tag&gt;
  </code></pre>
  
  <p>I have to use javascript to replace all the <code>&amp;nbsp;</code> contained inside the HTML tags with spaces. There can be any amount of tags and <code>&amp;nbsp;</code>. So it has to look like this:</p>
  
  <pre><code>&lt;tag class="bla"&gt;hey&amp;nbsp;there&amp;nbsp;&lt;/tag&gt;
  </code></pre>
  
  <p>Thanks in advance,
  Arthur.</p>