title: Jquery : .replace &reg; not functioning
body: <p>Why doesn't this work?</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/jquery-1.8.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
              $("body").html($("body").html().replace(/&amp;reg;/g, '&lt;sup&gt;&amp;reg;&lt;/sup&gt;').replace(/®/g, '&lt;sup&gt;&amp;reg;&lt;/sup&gt;').replace("\u00AE" , '&lt;sup&gt;&amp;reg;&lt;/sup&gt;'));
          };
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>Firebug in Firefox gives this in the console:
  "SyntaxError: missing ) after argument list"</p>
  
  <p>But, this breaks the Wordpress entirely...</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
              $("body").html($("body").html().replace(/&amp;reg;/g, '&lt;sup&gt;&amp;reg;&lt;/sup&gt;').replace(/®/g, '&lt;sup&gt;&amp;reg;&lt;/sup&gt;').replace("\u00AE" , '&lt;sup&gt;&amp;reg;&lt;/sup&gt;'));
          }
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>The basic of this function is to find every single registration mark in the body, and replace it with "<sup>&reg;</sup>"
  If this function is capable in PHP as well, that's preferable. </p>