title: String problems with Javascript double quotes inside single
body: <p>This is my code:</p>
  
  <pre><code>&lt;script&gt;
      function popupTest(title) {
          alert(title);
          return false;
      }
  &lt;/script&gt;
  
  &lt;a href="" onclick="return popupTest('This is &amp;#039;some&amp;#039; &amp;quot;test&amp;quot; string')"&gt;&lt;span&gt;Recommend&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Using Firefox 4 I get the error:</p>
  
  <pre><code>Error: missing ) after argument list
  Source Code:
  return popupTest('This is 'some' "test" string')
  </code></pre>
  
  <p>It's like it's decoding the HTML entities but I don't know why.</p>
  
  <p>Have also tried...</p>
  
  <pre><code>&lt;a href="" onclick="return popupTest('This is \'some\' \"test\" string')"&gt;&lt;span&gt;Recommend&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Which gives error:</p>
  
  <pre><code>Error: unterminated string literal
  Source Code:
  return popupTest('This is \'some\' \
  </code></pre>