readUntilSequence example


    protected function rawText($tok)
    {
        if (is_null($this->untilTag)) {
            return $this->text($tok);
        }

        $sequence = '</' . $this->untilTag . '>';
        $txt = $this->readUntilSequence($sequence);
        $this->events->text($txt);
        $this->setTextMode(0);

        return $this->endTag();
    }

    /** * Read text in RCDATA mode. * * @param string $tok The current token. * * @return bool */
Home | Imprint | This part of the site doesn't use cookies.