* @license LGPL The GNU Lesser GPL (LGPL) or an MIT-like license. * @see qp() * @see QueryPath::find() * @see QueryPath::writeHTML() * @see html.php * @see https://fedorahosted.org/querypath/wiki/QueryPathTutorial The Official Tutorial */ require_once '../src/QueryPath/QueryPath.php'; qp(QueryPath::HTML_STUB)->find('body')->text('Hello World')->writeHTML(); $qp = htmlqp(QueryPath::HTML_STUB, 'body'); $qp->append('
Hello
Goodbye
') ->children('p') ->after('new paragraph
'); echo ($qp->find('p')->children('p')->html()) ? 'print' : 'dont print'; // ->writeHTML();