I have an array of some parameters like:
arr=['abc','xyz','how are you, I am good'];
I want a result like:
- abc
- xyz
- how are you, I am good
Using javascript only.
I am explaining again something was wrong in last question. Here is the scenario.
I have 6 string varables having some special charecters.
I assigned these 6 strings to an array like this:
arr=[str1,str2,str3.....);
After that I am doing:
arr=escape(arr);
Because some string variable have special charecters.
After that I am reviving this arr
into other function like this.
var newarr=unescape(arr);
Now I want to get all six variables from this new arr
, how can I do this?
Currently I am using the split function like.
split(',');
But the problem is in this some variables have, inside so it splits twice I don't want that.
'; } document.write(txt); – Omri Sep 11 '12 at 13:49
` with the contents of that array?
– João Silva Sep 11 '12 at 13:50