Bonjour,
Petite correction rapide, car j'ai bien évidemment oublié une étape
cruciale en allant trop vite, qui est l'évaluation du XPath.
Mickael Wolff a écrit :
> $doc = DOMDocument::loadHTML($output) ;
> $doc->validate() ;
> - $finder = new DOMXPath('//text()') ;
+ $finder = new DOMXPath($doc) ;
> - foreach($nodes as $textNode)
+ foreach($finder->evaluate('//text()') as $textNode)
> {
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org