Microweber\Utils\Parser::get_html PHP Метод

get_html() публичный Метод

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