href inside loop javascript jquery
<p>i want to loop trough all my delicious.com bookmarks and wrap a link arround them...</p>

<p>here's my testsite:
<a href="http://dev.thomasveit.com/json.html" rel="nofollow">http://dev.thomasveit.com/json.html</a></p>

<pre><code>$(document).ready(function(){               
        $.ajax({
            url: "http://feeds.delicious.com/v2/json/tommyholiday",
            dataType: "jsonp",
            success: function(data){
                var bookmarks = $.map(data, function(bookmark){
                    return {
                        title: bookmark.d,
                        link: bookmark.u
                    }
                });                 

                var html = "&lt;ul&gt;",
                    m;

                for (i=0; i&lt;bookmarks.length; i++){
                    m = bookmarks[i];

                    html += "&lt;li&gt;&lt;a href="+m.link+"&gt;"+m.title+"&lt;/a&gt;&lt;/li&gt;";
                }
                html += "&lt;/ul&gt;";

                $("#delicious").html(html);

            }                       
        });
});
</code></pre>

<p>funnily enough only the third link is getting wrapped by a link... the others not.</p>

<p>what am i doing wrong?</p>
