Using escape function throws js error because special characters are present in text
<p>the sample is like this:-</p>

<pre><code>var encdata= escape('They're good at coding."Super". Its great!');
</code></pre>

<p>Now the error comes because it finds the closing apostrophe at they're instead at last.</p>

<p>It will work if i code the same as</p>

<pre><code>var encdata= escape('They re good at coding."Super".Its great!');
</code></pre>

<p>Similarly if i use double quotes and give like</p>

<pre><code>var encdata= escape("They're good at coding."Super".Its great!");
</code></pre>

<p>It will throw error at "super" but not at they're.</p>

<p>So, it should work when my text contains both double quotes and apostrophe.</p>

<p>And i can't wrap my text within as 'text' or "text".</p>

<p>So, i need an alternate solution for it</p>
