How to make literal acceptable?

D

Don Li

Hi,

The raw data reads
<P>add something to the 2nd row.</P>
<P>hmm, are you good?</P>

So, when I tried to assign variable s for the data, it fails because
variable assignment has to
be done on the same line, yes?

var s = "<P>add something to the 2nd row.</P>
<P>hmm, are you good?</P>"
// fails as speculated above

How to solve it? replace? quick dig didn't tell me much...

Thanks.
 
D

Don Li

Hi,

The raw data reads
<P>add something to the 2nd row.</P>
<P>hmm, are you good?</P>

So, when I tried to assign variable s for the data, it fails because
variable assignment has to
be done on the same line, yes?

var s = "<P>add something to the 2nd row.</P>
<P>hmm, are you good?</P>"
// fails as speculated above

How to solve it?  replace?  quick dig didn't tell me much...

Thanks.

Never mind, it's resolved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top