pQuery\HtmlParserBase::parse_comment PHP Method

parse_comment() public method

Parse comment tags
public parse_comment ( ) : boolean
return boolean
    function parse_comment()
    {
        $this->pos += 3;
        if ($this->next_pos('-->', false) !== self::TOK_UNKNOWN) {
            $this->status['comment'] = $this->getTokenString(1, -1);
            --$this->pos;
        } else {
            $this->status['comment'] = $this->getTokenString(1, -1);
            $this->pos += 2;
        }
        $this->status['last_pos'] = $this->pos;
        return true;
    }