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].
processToken()
protected method
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.
protected processToken ( HTMLPurifier_Token | array | integer | boolean $token, HTMLPurifier_Injector | integer $injector ) |
$token |
HTMLPurifier_Token | array | integer | boolean |
Token substitution value |
$injector |
HTMLPurifier_Injector | integer |
Injector that performed the substitution; default is if
this is not an injector related operation. |
$context protected_oe property
Current instance of HTMLPurifier_Context.