forked from kafene/netscape-bookmark-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
wesrc/parse_netscape_bookmarks
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Basically netscape bookmark files often come so badly formed, there's no reliable way I could find to parse them with DOM or SimpleXML, even after running HTML Tidy on them. So, this function does a bunch of transformations on the general format of a netscape bookmark file, to get Each bookmark and its description onto one line, and goes through line by line, matching tags and attributes. It's messy, but it works better than anything I could find in hours of googling, and anything that I could write after hours with DOM and SimpleXML. I didn't want to pull in a big DOM parsing library just to do this one thing, so this is it.
About
a php script (function) to parse netscape format bookmark files
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%