Öffentliche Methoden | |
execute ($tokens, $config, $context) | |
Öffentliche Methoden geerbt von HTMLPurifier_Strategy | |
execute ($tokens, $config, $context) | |
Geschützte Methoden | |
processToken ($token, $injector=-1) | |
Geschützte Attribute | |
$tokens | |
$token | |
$zipper | |
$stack | |
$injectors | |
$config | |
$context | |
Private Methoden | |
insertBefore ($token) | |
remove () | |
Takes tokens makes them well-formed (balance end tags, etc.)
Specification of the armor attributes this strategy uses:
- MakeWellFormed_TagClosedError: This armor field is used to suppress tag closed errors for certain tokens [TagClosedSuppress], in particular, if a tag was generated automatically by HTML Purifier, we may rely on our infrastructure to close it for us and shouldn't report an error to the user [TagClosedAuto].
Definiert in Zeile 14 der Datei MakeWellFormed.php.
execute | ( | $tokens, | |
$config, | |||
$context | |||
) |
HTMLPurifier_Token[] | $tokens | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
HTMLPurifier_Exception |
Definiert in Zeile 66 der Datei MakeWellFormed.php.
Benutzt $config, $context, $injectors, $stack, $token, $tokens, $zipper, HTMLPurifier_Zipper\fromArray(), insertBefore() und processToken().
|
private |
Inserts a token before the current token. Cursor now points to this token. You must reprocess after this.
HTMLPurifier_Token | $token |
Definiert in Zeile 581 der Datei MakeWellFormed.php.
Benutzt $token.
Wird benutzt von execute().
|
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.
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. |
HTMLPurifier_Exception |
Definiert in Zeile 535 der Datei MakeWellFormed.php.
Benutzt $token.
Wird benutzt von execute().
|
private |
Removes current token. Cursor now points to new token occupying previously occupied space. You must reprocess after this.
Definiert in Zeile 594 der Datei MakeWellFormed.php.
|
protected |
Current instance of HTMLPurifier_Config. HTMLPurifier_Config
Definiert in Zeile 51 der Datei MakeWellFormed.php.
Wird benutzt von execute().
|
protected |
Current instance of HTMLPurifier_Context. HTMLPurifier_Context
Definiert in Zeile 57 der Datei MakeWellFormed.php.
Wird benutzt von execute().
|
protected |
Injectors active in this stream processing. HTMLPurifier_Injector[]
Definiert in Zeile 45 der Datei MakeWellFormed.php.
Wird benutzt von execute().
|
protected |
Current nesting of elements. array
Definiert in Zeile 39 der Datei MakeWellFormed.php.
Wird benutzt von execute().
|
protected |
Current token. HTMLPurifier_Token
Definiert in Zeile 27 der Datei MakeWellFormed.php.
Wird benutzt von execute(), insertBefore() und processToken().
|
protected |
Array stream of tokens being processed. HTMLPurifier_Token[]
Definiert in Zeile 21 der Datei MakeWellFormed.php.
Wird benutzt von execute().
|
protected |
Zipper managing the true state. HTMLPurifier_Zipper
Definiert in Zeile 33 der Datei MakeWellFormed.php.
Wird benutzt von execute().