Nested quotes and variable concatenation
<p>I'm struggling with a complex nested quotes statement here :</p>

<pre><code>var name = "foo";
$("#list").append("&lt;li data-theme='c'&gt;&lt;a href='#details' onclick='sessionStorage.name=PRINT_VAR_NAME_HERE;' data-transition='slide'&gt;PRINT_VAR_NAME_HERE&lt;/a&gt;&lt;/li&gt;");
</code></pre>

<p>I am able to print the variable's value fine in the <strong>second</strong> position by using : "+name+"</p>

<p>But not sure how to get it done in the <strong>first</strong> position.</p>

<p>(I have used 'PRINT_VAR_NAME_HERE' as a placeholder for the first and second positions)</p>

<p>Any ideas ? Thanks.</p>
