Skip to content

a php script (function) to parse netscape format bookmark files

Notifications You must be signed in to change notification settings

wesrc/parse_netscape_bookmarks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

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

No packages published

Languages

  • PHP 100.0%