Mixing variables with text in Javascript
<p>Im trying (unsuccessfully) to prepend the following content to a div:</p>

<pre><code>var entry = $('textarea').val();    
var formated = '&lt;div class="newsfeed_entry"&gt;&lt;p&gt;' . entry . '&lt;/p&gt;&lt;/div&gt;';

    $('#entry_container').prepend(formated);
</code></pre>

<p>I think the reason it isn't work is related to the way I am mixing variables and text. I looked at the documentation but I can't figure out what the issue is. </p>
