\HTMLPurifier_Strategy_RemoveForeignElements

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.

Summary

Methods
Properties
Constants
execute()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

execute()

execute(\HTMLPurifier_Token[]  $tokens, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : array|\HTMLPurifier_Token[]

Executes the strategy on the tokens.

Parameters

\HTMLPurifier_Token[] $tokens
\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

array|\HTMLPurifier_Token[] —