HTMLPurifier_Token
Abstract base token class that all others inherit from.
- Full name:
\HTMLPurifier_Token
- This class is an Abstract class
Properties
line
Line number node was on in source document. Null if unknown.
col
Column of line node was on in source document. Null if unknown.
armor
Lookup array of processing that this token is exempt from.
Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"
skip
Used during MakeWellFormed. See Note [Injector skips]
rewind
carryover
Methods
__get
Parameters:
Parameter | Type | Description |
---|---|---|
$n |
string |
position
Sets the position of the token in the source document.
Parameters:
Parameter | Type | Description |
---|---|---|
$l |
int | |
$c |
int |
rawPosition
Convenience function for DirectLex settings line/col position.
Parameters:
Parameter | Type | Description |
---|---|---|
$l |
int | |
$c |
int |
toNode
Converts a token into its corresponding node.
- This method is abstract.
Automatically generated on 2025-03-18