prepend()関数の文字列は、一重引用符で区切られます。つまり、その文字列内に入力するすべての引用符は、。でエスケープする必要があります。しかし、これはあなたの問題ではありません。あなたの問題は無効なHTMLにあります。これはあなたが持っているものです:
$('#thirdPartyCheckoutButtons').prepend('<a href="https://www.resellerratings.com" onclick="window.open("https://seals.resellerratings.com/landing.php?seller=myID","name","height=760,width=780,scrollbars=1"); return false;"><img style="border:none;" src="//seals.resellerratings.com/seal.php?seller=myID" oncontextmenu="alert("Copying Prohibited by Law - ResellerRatings seal is a Trademark of All Enthusiast, Inc."); return false;" /></a><img src="https://www.myurl.com/hdsd834k.png" style="float: left;margin-left: 180px;">');
すべてのHTML属性値が二重引用符で区切られていることに気付いた場合。ただし、onclick = ""イベントでは、二重引用符を再度使用しています。ESCAPEDの単一引用符を使用して、この衝突を修正できます。oncontextmenu=""イベントでも同じ問題が発生します。
$('#thirdPartyCheckoutButtons').prepend('<a href="https://www.resellerratings.com" onclick="window.open(\'https://seals.resellerratings.com/landing.php?seller=myID\',\'name\',\'height=760,width=780,scrollbars=1\'); return false;"><img style="border:none;" src="//seals.resellerratings.com/seal.php?seller=myID" oncontextmenu="alert(\'Copying Prohibited by Law - ResellerRatings seal is a Trademark of All Enthusiast, Inc.\'); return false;" /></a><img src="https://www.myurl.com/hdsd834k.png" style="float: left;margin-left: 180px;">');
将来この問題を回避する最も簡単な方法は、jQuery関数呼び出しの外部で文字列(HTML)を作成し、その文字列を変数として渡すことです。