sorry for the dupe, i put this in the wrong forum 🙁
hi
i want to write a script that inputs the bookmark output that can get from mozilla and:
converts it into valid html 4.01 (ads html, head, body tags, etc)
style sheets it.
The problem is, the mozilla output begins as follows. my ph will look a bit like this:
-begin html
-begin stylesheet
-include bookmark file EXCEPT the first few lines.
output html document end (/body, /html)
question is, how exactly do i do it? regular expressions?
dgr
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 LAST_MODIFIED="1074010178" PERSONAL_TOOLBAR_FOLDER="true" ID="NC:PersonalToolbarFolder">Personal Toolbar Folder</H3>
<DL><p>
</DL><p>
<HR>
<DT><H3 ADD_DATE="1065027226" LAST_MODIFIED="1074004355" ID="NC:BookmarksRoot#$f9855d06">banking</H3>
<DL><p>
<DT><A HREF="http://www.hsbc.co.uk/ebank/default.htm" ADD_DATE="1065027226">HSBC Internet Banking Log on</A>
</DL><p>
<DT><H3 ADD_DATE="1074003541" LAST_MODIFIED="1074003546" ID="NC:BookmarksRoot#$ec837d36">benchmarking</H3>
<DL><p>
<DT><A HREF="http://foru