protected function Tokenizer::rawText in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ParserCode
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();
}