protected function Tokenizer::characterReference in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php \Masterminds\HTML5\Parser\Tokenizer::characterReference()
Handle character references (aka entities).
This version is specific to PCDATA, as it buffers data into the text buffer. For a generic version, see decodeCharacterReference().
HTML5 8.2.4.2
1 call to Tokenizer::characterReference()
- Tokenizer::consumeData in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Consume a character and make a move. HTML5 8.2.4.1
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 252
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
protected function characterReference() {
$ref = $this
->decodeCharacterReference();
if ($ref !== false) {
$this
->buffer($ref);
return true;
}
return false;
}