\HTMLPurifier_Strategy_MakeWellFormed
Takes tokens makes them well-formed (balance end tags, etc.)
Synopsis
class HTMLPurifier_Strategy_MakeWellFormed
extends HTMLPurifier_Strategy
{
- // members
- protected $tokens;
- protected $t;
- protected $stack;
- protected $injectors;
- protected $config;
- protected $context;
- // methods
- public void execute()
- protected void processToken()
- private void insertBefore()
- private void remove()
- private void swap()
- // Inherited methods from HTMLPurifier_Strategy
- public abstract void execute()
Hierarchy
Extends
Members
protected
-
$config
Current instance of HTMLPurifier_Config. -
$context
Current instance of HTMLPurifier_Context. -
$injectors
Injectors active in this stream processing. -
$stack
Current nesting of elements. -
$t
Current index in $tokens. -
$tokens
Array stream of tokens being processed.
Methods
private
- insertBefore() — Inserts a token before the current token. Cursor now points to this token
- remove() — Removes current token. Cursor now points to new token occupying previously occupied space.
- swap() — Swap current token with new token. Cursor points to new token (no change).
protected
- processToken() — Processes arbitrary token values for complicated substitution patterns.
public
Inherited from HTMLPurifier_Strategy
public
- execute() — Executes the strategy on the tokens.