title: Why am I getting a JSON parsing error from a jQuery Ajax operation?
body: <p>I am using jQuery Ajax to return a JSON object (with <code>dataType: 'json'</code>) from a PHP file. Here is the returned JSON string that the PHP file echoes out.</p>
  
  <pre><code>{'works': true,'text':'&lt;div class=\'animal\'&gt;Elephant&lt;/div&gt;&lt;br /&gt;'}
  </code></pre>
  
  <p>The Chrome web developer console notes <code>Error:parsererror SyntaxError: Unexpected token '</code>. I do not see, however, where an unexpected single quote could be.</p>