This is a simple parser used with PegJS to parse a NETSCAPE-Bookmark-file. I've only tested this with safari export.
You have to remove these tags:
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<Title>Bookmarks</Title>
<H1>Bookmarks</H1>
</HTML>