public function query($l, $selector = 'body', $return_function = 'htmlOuter')
{
require_once __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'phpQuery.php';
$pq = \phpQuery::newDocument($l);
$res = array();
foreach ($pq[$selector] as $elem) {
$l = pq($elem)->{$return_function}();
$res[] = $l;
}
return $res;
}