public function __construct($html, $escape = true) { $this->html = $html; $this->len = strlen($html); $this->pos = 0; $this->nodes = new HTMLTokenSet($escape); $this->state = self::$STATE_START; }