Class HTMLPurifier_Injector_RemoveSpansWithoutAttributes
Injector that removes spans with no attributes
-
HTMLPurifier_Injector
-
HTMLPurifier_Injector_RemoveSpansWithoutAttributes
Methods summary
public
boolean|string
|
#
prepare( HTMLPurifier_Config $config, HTMLPurifier_Context $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()).
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
Returns
boolean|string Boolean false if success, string of missing needed element/attribute if failure
Overrides
|
public
|
|
public
|
|
Properties summary
public
string
|
$name
|
'RemoveSpansWithoutAttributes' |
|
public
array
|
$needed
|
array('span') |
|