cdataSection example


        $tok = $this->scanner->next();

        // Comment:         if ('-' == $tok && '-' == $this->scanner->peek()) {
            $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. */
Home | Imprint | This part of the site doesn't use cookies.