Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_Strategy_RemoveForeignElements Class Reference
Inheritance diagram for HTMLPurifier_Strategy_RemoveForeignElements:
Collaboration diagram for HTMLPurifier_Strategy_RemoveForeignElements:

Public Member Functions

 execute ($tokens, $config, $context)

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

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations