You are here

protected function Tokenizer::rawText in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php \Masterminds\HTML5\Parser\Tokenizer::rawText()

Read text in RAW mode.

1 call to Tokenizer::rawText()
Tokenizer::characterData in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Parse anything that looks like character data.

File

vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php, line 183

Class

Tokenizer
The HTML5 tokenizer.

Namespace

Masterminds\HTML5\Parser

Code

protected function rawText() {
  if (is_null($this->untilTag)) {
    return $this
      ->text();
  }
  $sequence = '</' . $this->untilTag . '>';
  $txt = $this
    ->readUntilSequence($sequence);
  $this->events
    ->text($txt);
  $this
    ->setTextMode(0);
  return $this
    ->endTag();
}