Uncaught SyntaxError: Invalid or unexpected token for new line

Viewed 6285

I am trying to print the string of a PHP variable in a Javascript function.Whenever i use a new line in the string that is stored in the PHP variable, I get this error Uncaught SyntaxError while printing it out in a Javascript function.

enter image description here

1 Answers
Related