split function when split charecter present in string
<p>Here is the scenario:<br>
I have 6 string varables having some special charecters.<br>
I assigned these 6 strings to an array like this:</p>

<pre><code>arr=[str1,str2,str3.....);
arr=escape(arr);
</code></pre>

<p>because some string variable have special charecters.<br>
After that I am sending this <code>arr</code> into other function
and then recive this in other function like this:<br>
var <code>newarr=unescape(arr);</code><br>
Now i want to get all six variables from this <strong>new arr</strong> how can I do this?<br>
Currently i am using split function
like: <code>.split(',');</code></p>

<p>But the problem is that in some variables I have <code>,</code> inside, and it's splitted twice, I don't want that.</p>

<p>I have three variables</p>

<pre><code>img='/cardfinderservice/services/imageservice/?cardVersionId=16682&amp;amp';

desc= '5% Cash Back on up to $1,500 spent at grocery stores and movie theatres from 4/1/12-6/30/12&amp;lt;br /&amp;gt';

details='Unlimited 1% Cash Back on all other purchases&amp;lt;br /&amp;gt;Up to an additional 10% Cash Back when you shop online at select merchants through Chase&amp;lt;br /&amp;gt;No annual fee and rewards never expire&amp;lt;/p&amp;gt';

Var arr=[img,desc,details];   
arr=escape(arr);   
loadabc(arr);   
function loadabc(arr){    
    var newarr=unescape(arr);   
    newarr=newarr.split(',');   
}
</code></pre>
