|
| execute ($tokens, $config, $context) |
|
|
| processToken ($token, $injector=-1) |
| Processes arbitrary token values for complicated substitution patterns.
|
|
◆ execute()
HTMLPurifier_Strategy_MakeWellFormed::execute |
( |
| $tokens, |
|
|
| $config, |
|
|
| $context ) |
◆ processToken()
HTMLPurifier_Strategy_MakeWellFormed::processToken |
( |
| $token, |
|
|
| $injector = -1 ) |
|
protected |
Processes arbitrary token values for complicated substitution patterns.
In general:
If $token is an array, it is a list of tokens to substitute for the current token. These tokens then get individually processed. If there is a leading integer in the list, that integer determines how many tokens from the stream should be removed.
If $token is a regular token, it is swapped with the current token.
If $token is false, the current token is deleted.
If $token is an integer, that number of tokens (with the first token being the current one) will be deleted.
- Parameters
-
HTMLPurifier_Token | array | int | bool | $token | Token substitution value |
HTMLPurifier_Injector | int | $injector | Injector that performed the substitution; default is if this is not an injector related operation. |
- Exceptions
-
◆ $config
HTMLPurifier_Strategy_MakeWellFormed::$config |
|
protected |
◆ $context
HTMLPurifier_Strategy_MakeWellFormed::$context |
|
protected |
◆ $injectors
HTMLPurifier_Strategy_MakeWellFormed::$injectors |
|
protected |
◆ $stack
HTMLPurifier_Strategy_MakeWellFormed::$stack |
|
protected |
Current nesting of elements.
@type array
◆ $token
HTMLPurifier_Strategy_MakeWellFormed::$token |
|
protected |
◆ $tokens
HTMLPurifier_Strategy_MakeWellFormed::$tokens |
|
protected |
◆ $zipper
HTMLPurifier_Strategy_MakeWellFormed::$zipper |
|
protected |
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/Strategy/MakeWellFormed.php