Javascript string variable that contains PHP code
<p>I basically just want to append a javascript variable to an HTML div with JQuery. However I need to append some PHP code as a string, it doesn't need to execute it just needs to show up as a plain old string string.</p>

<p>The following code doesn't seem to append because I think it is still recognized as PHP syntax. </p>

<pre><code>var script = '&lt;?php wp_list_pages(); ?&gt;';
divName.innerHTML = script;
</code></pre>

<p>Any help would be much appreciated.</p>
