I'm having trouble passing apostrophe's into a string. Everything I try (escaping etc) freaks out.
Could you advise me how to output the following line in the browser :
<a href="javascript:;" onclick="addToBasket('tk_id','track')" class="pl-buy"></a>
Using the following format :
d += "<a href='javascript:;' onclick='addToBasket("' + a.tk_id + '" , 'track')' class='" + this.options.playlistOptions.plbuybutton + "'></a>";
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.
Thanks in advance,
Grant