HTMLPurifier_Strategy_RemoveForeignElements
extends HTMLPurifier_Strategy
in package
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.
Table of Contents
Methods
- execute() : array<string|int, mixed>|array<string|int, HTMLPurifier_Token>
- Executes the strategy on the tokens.
Methods
execute()
Executes the strategy on the tokens.
public
execute(array<string|int, HTMLPurifier_Token> $tokens, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : array<string|int, mixed>|array<string|int, HTMLPurifier_Token>
Parameters
- $tokens : array<string|int, HTMLPurifier_Token>
- $config : HTMLPurifier_Config
- $context : HTMLPurifier_Context