I am facing
SyntaxError: unterminated string literal*
error while trying to set a value in text area.
Here, The text value is dynamic and receiving from the backend and that can contain any characters.
After my first investigation, i could find that the error is due some special characters in the text like singlequote, double quotes and new line character.
how can I resolve the issue.
" to \\\"... But what change needs to be doen in javascript level to diaply the value `function setValue(notes){ $('#notesId').html(notes); }` – Kuruvi Sep 18 '15 at 11:41