Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dom = new Zend_Dom_Query($html);
- $results = $dom->query( ??? );
- <html>
- <head>....</head>
- <body>
- <div>
- <h1>Headline</h1>
- <h2>Subheadline</h2>
- <p>Some text</p>
- <a href="...">
- A Link
- <img src="..." />
- <span style="display:none">additional text</span>
- </a>
- </div>
- </body>
- </html>
- <html>
- <head>....</head>
- <body>
- <div>
- <h1>Hinladee</h1>
- <h2>Suialebdhne</h2>
- <p>Smoe txet</p>
- <a href="...">
- A Lnik
- <img src="..." />
- <span style="display:none">anodiaditl txet</span>
- </a>
- </div>
- </body>
- </html>
- $dom = new Zend_Dom_Query($html);
- $results = $dom->query("//text()");
Add Comment
Please, Sign In to add comment