note 95464 deleted from domdocument.loadhtmlfile by danbrown

From: Date: Mon, 04 Jan 2010 16:43:55 +0000
Subject: note 95464 deleted from domdocument.loadhtmlfile by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164626@lists.php.net to get a copy of this message
Note Submitter: Shane Harter ---- DOMDocument is very good at dealing with imperfect markup, but it throws warnings all over the place when it does. This isn't well documented here. The solution to this is to implement a separate aparatus for dealing with just these errors. Set libxml_use_internal_errors(true) before calling loadHTML. This will prevent errors from bubbling up to your default error handler. And you can then get at them (if you desire) using other libxml error functions. You can find more info here http://www.php.net/manual/en/ref.libxml.php

« previous php.notes (#164626) next »