Afficher un message
Vieux 01/10/2007, 14h01   #5
Mickael Wolff
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Circonscrire un eregi_replace ?

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
  Réponse avec citation
 
Page generated in 0,04615 seconds with 9 queries