Created
November 26, 2011 22:55
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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