title: Multiple apostrophe's in javascript generated link
body: <p>I'm having trouble passing apostrophe's into a string. Everything I try (escaping etc) freaks out.</p>
  
  <p>Could you advise me how to output the following line in the browser :</p>
  
  <pre><code>&lt;a href="javascript:;" onclick="addToBasket('tk_id','track')" class="pl-buy"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Using the following format :</p>
  
  <pre><code>d += "&lt;a href='javascript:;' onclick='addToBasket("' + a.tk_id + '" , 'track')' class='" + this.options.playlistOptions.plbuybutton + "'&gt;&lt;/a&gt;";
  </code></pre>
  
  <p>I know this isn't the best way to do it but if it's possible I'd like to do it this way without having to write a function.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Grant</p>