| 1 | <?php  | 
            ||
| 8 | class HtmlTokenizer  | 
            ||
| 9 | { | 
            ||
| 10 | /** @var boolean */  | 
            ||
| 11 | private $throwOnError;  | 
            ||
| 12 | |||
| 13 | /** @var string */  | 
            ||
| 14 | private static $allHtml = '';  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Constructor  | 
            ||
| 18 | */  | 
            ||
| 19 | 7 | public function __construct($throwOnError = false)  | 
            |
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * Will parse html into tokens.  | 
            ||
| 26 | *  | 
            ||
| 27 | * @param $html string The HTML to tokenize.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @return TokenCollection  | 
            ||
| 30 | */  | 
            ||
| 31 | 7 | public function parse($html)  | 
            |
| 53 | |||
| 54 | 85 | public static function getPosition($partialHtml)  | 
            |
| 73 | }  | 
            ||
| 74 |