Class HTMLPurifier_Strategy_MakeWellFormed
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].
- HTMLPurifier_Strategy
- HTMLPurifier_Strategy_MakeWellFormed
public
|
|
protected
|
#
processToken( $token $token, $injector $injector = -1 )
Processes arbitrary token values for complicated substitution patterns. In general: |
protected
|
$tokens |
|
#
Array stream of tokens being processed. |
protected
|
$t |
|
#
Current index in $tokens. |
protected
|
$stack |
|
#
Current nesting of elements. |
protected
|
$injectors |
|
#
Injectors active in this stream processing. |
protected
|
$config |
|
#
Current instance of HTMLPurifier_Config. |
protected
|
$context |
|
#
Current instance of HTMLPurifier_Context. |