note 71511 deleted from function.dom-domdocument-loadhtml by bjori

From: Date: Sun, 03 Dec 2006 18:48:23 +0000
Subject: note 71511 deleted from function.dom-domdocument-loadhtml by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-120250@lists.php.net to get a copy of this message
Note Submitter: PHP D00d ---- The above sample <?php $doc = new DOMDocument(); $doc->loadHTML("<html><body>Test<br></body></html>"); echo $doc->saveHTML(); ?> Is totally busted in PHP 4.4.0. You can't use <? $doc = new DOMDocument(); ?> without first passing parameters on the constructor. This is counter intuitive when you want to use the LoadHTML method. Tips? Hints? I'd love to parse HTML for a little experiment I want to conduct.

« previous php.notes (#120250) next »