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
|
#
execute(
|
protected
|
#
processToken(
Processes arbitrary token values for complicated substitution patterns. In general: |
protected
mixed
|
$tokens |
|
#
Array stream of tokens being processed. |
protected
mixed
|
$token |
|
#
Current token. |
protected
mixed
|
$zipper |
|
#
Zipper managing the true state. |
protected
mixed
|
$stack |
|
#
Current nesting of elements. |
protected
mixed
|
$injectors |
|
#
Injectors active in this stream processing. |
protected
mixed
|
$config |
|
#
Current instance of HTMLPurifier_Config. |
protected
mixed
|
$context |
|
#
Current instance of HTMLPurifier_Context. |