title: Parsing of badly formatted HTML in PHP
body: <p>In my code I convert some styled xls document to html using openoffice.
  I then parse the tables using <code>xml_parser_create</code>.
  The problem is that openoffice creates oldschool html with unclosed <code>&lt;BR&gt;</code> and <code>&lt;HR&gt;</code> tags, it doesn't create doctypes and don't quote attributes <code>&lt;TABLE WIDTH=4&gt;</code>.</p>
  
  <p>The php parsers I know off don't like this, and yield xml formatting errors. My current solution is to run some regexes over the file before I parse it, but this is neither nice nor fast.</p>
  
  <p>Do you know a (hopefully included) php-parser, that doesn't care about these kinds of mistakes? Or perhaps a fast way to fix a 'broken' html?</p>