store multi-line text in a JavaScript variable
<p>Ho to store multiline text in a javascript variable;</p>

<p>I am using PHP to assign value to javascript variable.</p>

<p>Please see a SAMPLE code below</p>

<pre><code>&lt;html&gt;
 &lt;head&gt;
 &lt;title&gt; New Document &lt;/title&gt;
 &lt;?php

  $foo = " this is a 
               multiline statement";
 ?&gt;

 &lt;script&gt; 
  bar = '&lt;?php print $foo;?&gt;';
  alert(bar);
 &lt;/script&gt;
 &lt;/head&gt;
  &lt;body&gt;
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I don't want to loose any white-space characters.How can this be done ?</p>
