The following works just fine:
var sFirstText=<?php include("first2.html"); ?>;
when first2.html looks like this INCLUDING the double quotes:
"<p>sentence one</p><p>sentence two</p>"
However, if first2.html looks like:
"<p>sentence one</p>
<p>sentence two</p>"
I get an unterminated string literal message. I hope to figure out how I can include the html without first having to remove the carriage return/line feed sequences.
Also, if I remove the double quotes and do:
var sFirstText="<?php include("first2.html"); ?>";
that won’t work, returning a message I haven’t yet been able to comprehend.
Basically I want to get simple html formatting into a field without having to remove the cr/lf sequences.
Try using a
\at the end of the line to continue the string to the next line.