API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Strategy Class Reference
Inheritance diagram for HTMLPurifier_Strategy:

Public Member Functions

 execute ($tokens, $config, $context)

Detailed Description

Supertype for classes that define a strategy for modifying/purifying tokens.

While HTMLPurifier's core purpose is fixing HTML into something proper, strategies provide plug points for extra configuration or even extra features, such as custom tags, custom parsing of text, etc.

Member Function Documentation

◆ execute()

execute (   $tokens,

Executes the strategy on the tokens.

HTMLPurifier_Token[]$tokensArray of HTMLPurifier_Token objects to be operated on.
HTMLPurifier_Token[] Processed array of token objects.

Reimplemented in HTMLPurifier_Strategy_Composite, HTMLPurifier_Strategy_FixNesting, HTMLPurifier_Strategy_MakeWellFormed, HTMLPurifier_Strategy_RemoveForeignElements, and HTMLPurifier_Strategy_ValidateAttributes.

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