- \HTML5_Tokenizer
class (none) \ HTML5_Tokenizer
Method Summary
| Name | Description |
|---|---|
| __construct($data, $builder = null) | |
| characterReferenceInAttributeValue($allowed = false) | |
| consumeCharacterReference($allowed = false, $inattr = false) | |
| emitToken($token, $checkStream = true, $dry = false) | Emits a token, passing it on to the tree builder. |
| parse() | Performs the actual parsing of the document. |
| parseFragment($context = null) | |
| save() | Returns a serialized representation of the tree. |
| stream() | Returns the input stream. |
public function __construct($data, $builder = null)
- Parameters:
$data- Data to parse- Defaults:
builder=null
private function characterReferenceInAttributeValue($allowed = false)
- Defaults:
allowed=false
private function consumeCharacterReference($allowed = false, $inattr = false)
- Defaults:
allowed=falseinattr=false
protected function emitToken($token, $checkStream = true, $dry = false)
Emits a token, passing it on to the tree builder.
- Defaults:
checkStream=truedry=false
public function parse()
Performs the actual parsing of the document.
public function parseFragment($context = null)
- Defaults:
context=null
public function save()
Returns a serialized representation of the tree.
public function stream()
Returns the input stream.