function parse_text() { $len = $this->pos - 1 - $this->status['last_pos']; $this->status['text'] = $len > 0 ? substr($this->doc, $this->status['last_pos'] + 1, $len) : ''; }