title: Parsing json enconded object containing html entities in javascript
body: <p>I had a php object..that I converted to json text using <strong>json_encode()</strong> 
  function. Then I passed it on <strong>$.parseJSON()</strong> function on javascript.
  <br><br>
  Note:The description field in json object contains text encoded in html entities..
  <br><br>
  On execution <strong>$.parseJSON()</strong> function says...</p>
  
  <blockquote>
    <p>SyntaxError: JSON.parse: bad control character in string literal at
    line 1 column 133 of the JSON data</p>
  </blockquote>
  
  <p>However if description field just just had normal text like <strong>"description":"hy"</strong> there would be no problem in parsing <strong>$.parseJSON()</strong> function..
  <br></p>
  
  <p>The need is I have to store description field with html entities that I have on database..</p>
  
  <p>Help me out Guys...</p>
  
  <pre><code>$(window).load(function editPage(){
           var page_data = $.parseJSON('{"id":"1","title":"FAQ","summary":"Frequently Asked Questions are available here","description":"&amp;lt;!DOCTYPE html&amp;gt;\r\n&amp;lt;html&amp;gt;\r\n&amp;lt;head&amp;gt;\r\n&amp;lt;\/head&amp;gt;\r\n&amp;lt;body&amp;gt;\r\n&amp;lt;h6 class=&amp;quot;section-heading__heading heading--1&amp;quot;&amp;gt;What does Shopify do?&amp;lt;\/h6&amp;gt;\r\n&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;\/p&amp;gt;\r\n&amp;lt;div class=&amp;quot;grid-item grid-6 grid-push-1&amp;quot;&amp;gt;\r\n&amp;lt;div class=&amp;quot;long-form-content &amp;quot;&amp;gt;\r\n&amp;lt;p&amp;gt;Shopify is a complete &amp;lt;code&amp;gt;&amp;lt;a class=&amp;quot;body-link&amp;quot; href=&amp;quot;https:\/\/www.shopify.com\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noopener&amp;quot;&amp;gt;ecommrce solution&amp;lt;\/a&amp;gt;&amp;lt;\/code&amp;gt; that allows you to set up an online store to sell your goods. It lets you organize your products, customize your storefront, accept credit card payments, track and respond to orders &amp;amp;mdash; all with a few clicks of the mouse.&amp;lt;\/p&amp;gt;\r\n&amp;lt;\/div&amp;gt;\r\n&amp;lt;\/div&amp;gt;\r\n&amp;lt;\/body&amp;gt;\r\n&amp;lt;\/html&amp;gt;","status":"1","featured_image":"Page-1519912947103.jpg","added_date":"2018-03-01 19:46:28","updated_date":"2018-03-02 10:13:11"}');
                 console.log(page_data);
                 }
              );
  </code></pre>