title: jQuery variable within string, quotes within quotes
body: <p>I have the following jQuery code: </p>
  
  <pre><code>$(".container").append("&lt;a href='javascript:void(0)'onClick='showField('"+data.name+"','"+data.text+"');'&gt;Edit&lt;/a&gt;");
  </code></pre>
  
  <p>Which is outputting (notice the quote problem before the <code>4</code> and before the <code>&gt;edit</code>: </p>
  
  <pre><code>&lt;a href="javascript:void(0)" onclick="showField("4','school_type');'&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>When it should be outputting:</p>
  
  <pre><code>&lt;a href="javascript:void(0)" onclick="showField('4','school_type');"&gt;Edit&lt;/a&gt;
  </code></pre>