V
VUNETdotUS
Let's say I have a string:
div.innerHTML = "<a onclick='foo(\""+myWord+"\");'></a>";
in IE only (tested version 7) if var myWord = "English" then it works
fine
but if var myWord = "Modifier Cha\u00EEnes" then I get "Unterminated
string constant" error.
What fix would you suggest to keep div.innerHTML = "" format?
Thanks.
div.innerHTML = "<a onclick='foo(\""+myWord+"\");'></a>";
in IE only (tested version 7) if var myWord = "English" then it works
fine
but if var myWord = "Modifier Cha\u00EEnes" then I get "Unterminated
string constant" error.
What fix would you suggest to keep div.innerHTML = "" format?
Thanks.