prepend() を使用していますが、結果にバグがあるようです。
$('#element').prepend('<div><a href="http://google.com"><a href="http://test.com">Test.com</a> - A site</a></div>');
また、html の結果 (Firebug でも表示) にはバグがあります。
<div>
<a href="http://google.com"></a>
<a href="http://test.com">Test.com</a> - A site
</div>
(リンクはサンプルリンクです)