bogusComment example

$this->scanner->consume(2);

            return $this->comment();
        } elseif ('D' == $tok || 'd' == $tok) { // Doctype             return $this->doctype();
        } elseif ('[' == $tok) { // CDATA section             return $this->cdataSection();
        }

        // FINISH         $this->parseError('Expected <!--, <![CDATA[, or <!DOCTYPE. Got <!%s', $tok);
        $this->bogusComment('<!');

        return true;
    }

    /** * Consume an end tag. See section 8.2.4.9. */
    protected function endTag()
    {
        if ('/' != $this->scanner->current()) {
            return false;
        }
Home | Imprint | This part of the site doesn't use cookies.