HTMLPurifier 4.4.0
|
Removes all unrecognized tags from the list of tokens. More...
Public Member Functions | |
execute ($tokens, $config, $context) | |
Executes the strategy on the tokens. | |
execute ($tokens, $config, $context) | |
Executes the strategy on the tokens. |
Removes all unrecognized tags from the list of tokens.
This strategy iterates through all the tokens and removes unrecognized tokens. If a token is not recognized but a TagTransform is defined for that element, the element will be transformed accordingly.
Definition at line 11 of file RemoveForeignElements.php.
HTMLPurifier_Strategy_RemoveForeignElements::execute | ( | $ | tokens, |
$ | config, | ||
$ | context | ||
) |
Executes the strategy on the tokens.
$tokens | Array of HTMLPurifier_Token objects to be operated on. |
$config | Configuration options |
Reimplemented from HTMLPurifier_Strategy.
Definition at line 14 of file RemoveForeignElements.php.
HTMLPurifier_Strategy_RemoveForeignElements::execute | ( | $ | tokens, |
$ | config, | ||
$ | context | ||
) |
Executes the strategy on the tokens.
$tokens | Array of HTMLPurifier_Token objects to be operated on. |
$config | Configuration options |
Reimplemented from HTMLPurifier_Strategy.
Definition at line 16334 of file HTMLPurifier.standalone.php.