first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
class Brizy_Parser_Pquery extends pQuery {
/**
* Query a string of html.
*
* @param string $html
*
* @return pQuery\DomNode Returns the root dom node for the html string.
*/
public static function parseStr( $html ) {
$parser = new pQuery\Html5Parser( $html, 0, new Brizy_Parser_DomNode( '~root~', null ) );
return $parser->root;
}
}