HTMLPurifier 4.4.0
HTMLPurifier_Strategy_RemoveForeignElements Class Reference

Removes all unrecognized tags from the list of tokens. More...

Inheritance diagram for HTMLPurifier_Strategy_RemoveForeignElements:
HTMLPurifier_Strategy HTMLPurifier_Strategy

List of all members.

Public Member Functions

 execute ($tokens, $config, $context)
 Executes the strategy on the tokens.
 execute ($tokens, $config, $context)
 Executes the strategy on the tokens.

Detailed Description

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.


Member Function Documentation

HTMLPurifier_Strategy_RemoveForeignElements::execute ( tokens,
config,
context 
)

Executes the strategy on the tokens.

Parameters:
$tokensArray of HTMLPurifier_Token objects to be operated on.
$configConfiguration options
Returns:
Processed array of token objects.

Reimplemented from HTMLPurifier_Strategy.

Definition at line 14 of file RemoveForeignElements.php.

References $config, and $data.

HTMLPurifier_Strategy_RemoveForeignElements::execute ( tokens,
config,
context 
)

Executes the strategy on the tokens.

Parameters:
$tokensArray of HTMLPurifier_Token objects to be operated on.
$configConfiguration options
Returns:
Processed array of token objects.

Reimplemented from HTMLPurifier_Strategy.

Definition at line 16334 of file HTMLPurifier.standalone.php.

References $config, and $data.


The documentation for this class was generated from the following files: