Class HTMLPurifier_Strategy_RemoveForeignElements
Inheritance | HTMLPurifier_Strategy_RemoveForeignElements » HTMLPurifier_Strategy |
---|
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.
Public Methods
Method | Description | Defined By |
---|---|---|
execute() | HTMLPurifier_Strategy_RemoveForeignElements |
Method Details
public array|HTMLPurifier_Token[] execute ( $tokens, $config, $context ) | ||
$tokens | HTMLPurifier_Token[] | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |