firebug: SyntaxError: missing ) after argument list
<p>sorry for my bad english
my code work with jquery 1.4.2 but not work with 1.7.1
I am receiving "missing ) after argument list" error in firebug with the code below:</p>

<pre><code>$(document).ready(function() {
  $('#content').html($('#content').html().replace(/#([a-zA-Z1-9]{1,})/gi,'&lt;a href="&lt;?php echo $this-&gt;webroot ?&gt;instagrams/index/$1" class="tag_replace"&gt;#$1&lt;/a&gt;'));
});
</code></pre>

<p>my generated code:</p>

<pre><code>$(document).ready(function() {
  $('#content').html($('#content').html().replace(/#([a-zA-Z1-9]{1,})/gi,'&lt;a href="/instagram/instagrams/index/$1" class="tag_replace"&gt;#$1&lt;/a&gt;'));
});
</code></pre>

<p>browser error code :
SyntaxError: missing ) after argument list
[Break On This Error]   </p>

<p>...agram/instagrams/index/content" class="tag_replace">#content").append(html)</p>

<p>jquery....min.js (line 11, col 63)</p>
