Class HTMLPurifier_HTMLModule_Tidy
Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
- HTMLPurifier_HTMLModule
- HTMLPurifier_HTMLModule_Tidy
Direct known subclasses
HTMLPurifier_HTMLModule_Tidy_Name, HTMLPurifier_HTMLModule_Tidy_Proprietary, HTMLPurifier_HTMLModule_Tidy_XHTML, HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4Indirect known subclasses
HTMLPurifier_HTMLModule_Tidy_Strict, HTMLPurifier_HTMLModule_Tidy_Transitional
public
|
#
setup(
Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function. |
public
array
|
#
getFixesForLevel( string $level )
Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it. |
public
|
#
makeFixesForLevel( array $fixes )
Dynamically populates the $fixesForLevel member variable using the fixes array. It may be custom overloaded, used in conjunction with $defaultLevel, or not used at all. |
public
|
|
public
array(string
|
#
getFixType( mixed $name )
Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix |
public
array
|
addBlankElement(),
addElement(),
addElementToContentSet(),
getChildDef(),
makeLookup(),
mergeInAttrIncludes(),
parseContents()
|
public
array
|
$levels | array(0 => 'none', 'light', 'medium', 'heavy') |
#
List of supported levels. Index zero is a special case "no fixes" level. |
public
mixed
|
$defaultLevel | null |
#
Default level to place all fixes in. Disabled by default. |
public
array
|
$fixesForLevel | array(
'light' => array(),
'medium' => array(),
'heavy' => array()
) |
#
Lists of fixes used by getFixesForLevel(). Format is: |
$attr_collections,
$content_sets,
$defines_child_def,
$elements,
$info,
$info_attr_transform_post,
$info_attr_transform_pre,
$info_injector,
$info_tag_transform,
$name,
$safe
|