title: Uncaught SyntaxError: Unexpected identifier on strings with quotes and backticks
body: <p>I have value from javascript here which is a json string.</p>
  <pre><code>&lt;script&gt;
    var data = '[{&quot;text&quot;:&quot;Lorem's ipsum dolor sit amet&quot;},{&quot;text&quot;:&quot;consectetur`s adipiscing elit&quot;}]';
    console.log(data);
  &lt;/script&gt;
  </code></pre>
  <p>The above code has error <code>Uncaught SyntaxError: Unexpected identifier</code></p>
  <p>I also used backtick instead of single/double quote, but it has same error</p>
  <pre><code>&lt;script&gt;
    var data = `[{&quot;text&quot;:&quot;Lorem's ipsum dolor sit amet&quot;},{&quot;text&quot;:&quot;consectetur`s adipiscing elit&quot;}]`;
    console.log(data);
  &lt;/script&gt;
  </code></pre>
  <p>How can I do avoid the error? Given that the json string has single quote from <code>Lorem's</code> and backtick quote from <code>consectetur</code>?</p>