Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
$html = new Document('<html><body><div id="foo">Ipsum</div></body></html>');
$ret = $html->find('div[id=foo]');
echo $ret->plaintext;//will output 'Ipsum'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment