PHP Preferred - Parse firefox bookmarks into html unordered lists?

I’ve been looking around for a while now and I can’t seem to figure out if there’s a way to convert firefox’s bookmarks into html unordered lists. I’m working on it so there’s a public list of interesting links to check out on my site.

I come across a lot of interesting links and do a lot of shifting of things in the bookmarks manager so manually updating the links is a ton of work and insanely tiresome.

I’ve tried parsing it out myself, but I keep getting stuck trying to parse out the urls using regular expressions.

Well, I’ve got the first part figured out at least.

/HREF="([^"])".>(.*)</A>/

To parse out the url and text of the link.

firefox bookmarks are already stored as html lists. Just look in your FF folder. Unless they’ve changed things :puzzle:

Nah, they’re in this terrible old format with all sorts of extra useless information. If I can successfully parse out the bits that I need, I could probably cut the amount of code by 80%.

I’m pretty close so far - basically done enough to where I should get back to sorting my bookmarks in firefox and see if the output is good enough to just cut/paste and make a few changes.

Well, looks like mozilla made my job easier. They switched to xml!