title: regex and replace giving &amp; instead of &
body: <p>I have this text <code>ijhhhv&amp;yuy&amp;uvuv&amp;</code> and I want to highlight the "&amp;" characters.</p>
  
  <p>When I run this code: </p>
  
  <pre><code>var searchTerm = '&amp;';
  var searchTermRegEx = new RegExp(searchTerm, "g");
  var content = "&lt;span class='match'&gt;" + searchTerm + "&lt;/span&gt;";
  $('#div').html($('#div').html().replace(searchTermRegEx,content));
  </code></pre>
  
  <p>I get this: <code>ijhhhv&amp;amp;yuy&amp;amp;uvuv&amp;amp;</code> - an extra "amp;" after my highlited "&amp;", why? how to fix this?<br>
  (the search term is not just "&amp;", I will use words and letters on my regex searches. I just got problems with the "&amp;")</p>
  
  <p>Fiddle <strong><a href="http://jsfiddle.net/r6Qhz/1/" rel="nofollow">here</a></strong></p>