Parse invalid HTML into DOM


libxml_use_internal_errors(true);
$dom = new DOMDocument();
libxml_clear_errors();
$dom->loadHTML($html);