Takes tokens makes them well-formed (balance end tags, etc.)
Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 14622)
HTMLPurifier_Strategy | --HTMLPurifier_Strategy_MakeWellFormed
Current instance of HTMLPurifier_Config.
Current instance of HTMLPurifier_Context.
Injectors active in this stream processing.
Current nesting of elements.
Current index in $tokens.
Array stream of tokens being processed.
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.
Inherited From HTMLPurifier_Strategy
HTMLPurifier_Strategy::execute()
Documentation generated on Sun, 06 Mar 2011 00:24:10 -0500 by phpDocumentor 1.4.3