title: jQuery render html from Rails view
body: <p>I am using jQuery in my Rails project to respond to an AJAX call. I want to replace some html with the updated html (from a partial).</p>
  
  <p><code>$('#cart').html('&lt;%= render(@cart) %&gt;')</code></p>
  
  <p>This doesn't work, and when I check FireBug, it expands out to:</p>
  
  <pre><code>$('#cart').html('&lt;h1&gt;multiple
      lines
      &lt;a href="of"&gt;html&lt;/a&gt;
      &lt;/h1&gt;')
  </code></pre>