i have a long String. With some German characters and lots of new lines tabs ect.. In a Selectbox user can select a text, on change i do
document.getElementById('text').value=this.value;
But this fails. I just get a "unterminated string literal"
as error in JavaScript.
I think i should clean the string.
How can i do it in JavaScript?