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

Public Member Functions

 prepare ($config, $context)
 
 handleElement (&$token)
 
 handleEnd (&$token)
 
- Public Member Functions inherited from HTMLPurifier_Injector
 rewindOffset ($offset)
 
 getRewindOffset ()
 
 prepare ($config, $context)
 
 checkNeeded ($config)
 
 allowsElement ($name)
 
 handleText (&$token)
 
 handleElement (&$token)
 
 handleEnd (&$token)
 
 notifyEnd ($token)
 

Data Fields

 $name = 'RemoveSpansWithoutAttributes'
 
 $needed = array('span')
 
- Data Fields inherited from HTMLPurifier_Injector
 $name
 
 $needed = array()
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_Injector
 forward (&$i, &$current)
 
 forwardUntilEndToken (&$i, &$current, &$nesting)
 
 backward (&$i, &$current)
 
- Protected Attributes inherited from HTMLPurifier_Injector
 $htmlDefinition
 
 $currentNesting
 
 $currentToken
 
 $inputZipper
 
 $rewindOffset = false
 

Detailed Description

Injector that removes spans with no attributes

Member Function Documentation

◆ handleElement()

handleElement ( $token)
Parameters
HTMLPurifier_Token$token

Reimplemented from HTMLPurifier_Injector.

Here is the call graph for this function:

◆ handleEnd()

handleEnd ( $token)
Parameters
HTMLPurifier_Token$token

Reimplemented from HTMLPurifier_Injector.

◆ prepare()

prepare (   $config,
  $context 
)

Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector. This function also checks if the HTML environment will work with the Injector (see checkNeeded()).

Parameters
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string Boolean false if success, string of missing needed element/attribute if failure

Reimplemented from HTMLPurifier_Injector.

Field Documentation

◆ $name

$name = 'RemoveSpansWithoutAttributes'

@type string

◆ $needed

$needed = array('span')

@type array


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