Skip to content

Instantly share code, notes, and snippets.

@yaph
Created November 26, 2011 22:55
Show Gist options
  • Save yaph/1396453 to your computer and use it in GitHub Desktop.
Save yaph/1396453 to your computer and use it in GitHub Desktop.
Create an unordered list with only href anchor attributes from a Delicious bookmark export
var list = '';
$('dl dt').each(function(idx,elt){
var a = $(elt).find('a');
list += '<li><a href="' + a.attr('href') + '">' + a.text() + '</a></li>\n';
});
console.log('<ul>'+list+'</ul>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment