javascript - String that contains line breaks -


possible duplicate:
how create multiline strings

i have lot of strings want put in variables, there line breaks aren't accepted.

firefox says "unterminated string literal" when write :

var a="foo bar"; 

is there way write strings without removing line breaks manually?

if not acceptable:

var a="foo" + "bar"; 

or @minitech (the new mod) suggested:

var a="foo \ bar"; 

then answer no.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -