Class HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4

InheritanceHTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 » HTMLPurifier_HTMLModule_Tidy » HTMLPurifier_HTMLModule
SubclassesHTMLPurifier_HTMLModule_Tidy_Strict, HTMLPurifier_HTMLModule_Tidy_Transitional

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$attr_collections Associative array of attribute collection names to attribute collection additions. More rarely used for adding attributes to the global collections. Example is the StyleAttribute module adding the style attribute to the Core. Corresponds to HTMLDefinition's attr_collections->info, since the object's data is only info, with extra behavior associated with it. HTMLPurifier_HTMLModule
$content_sets Associative array of content set names to content set additions. HTMLPurifier_HTMLModule
$defaultLevel Default level to place all fixes in. HTMLPurifier_HTMLModule_Tidy
$defines_child_def Boolean flag that indicates whether or not getChildDef is implemented. HTMLPurifier_HTMLModule
$elements Informally, a list of elements this module changes. HTMLPurifier_HTMLModule
$fixesForLevel Lists of fixes used by getFixesForLevel(). HTMLPurifier_HTMLModule_Tidy
$info Associative array of element names to element definitions. HTMLPurifier_HTMLModule
$info_attr_transform_post List of HTMLPurifier_AttrTransform to be performed after validation. HTMLPurifier_HTMLModule
$info_attr_transform_pre List of HTMLPurifier_AttrTransform to be performed before validation. HTMLPurifier_HTMLModule
$info_injector List of HTMLPurifier_Injector to be performed during well-formedness fixing. HTMLPurifier_HTMLModule
$info_tag_transform Associative array of deprecated tag name to HTMLPurifier_TagTransform. HTMLPurifier_HTMLModule
$levels List of supported levels. HTMLPurifier_HTMLModule_Tidy
$name Short unique string identifier of the module. HTMLPurifier_HTMLModule
$safe Boolean flag whether or not this module is safe. If it is not safe, all of its members are unsafe. Modules are safe by default (this might be slightly dangerous, but it doesn't make much sense to force HTML Purifier, which is based off of safe HTML, to explicitly say, "This is safe," even though there are modules which are "unsafe") HTMLPurifier_HTMLModule

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addBlankElement() Convenience function that creates a totally blank, non-standalone element. HTMLPurifier_HTMLModule
addElement() Convenience function that sets up a new element HTMLPurifier_HTMLModule
addElementToContentSet() Convenience function that registers an element to a content set HTMLPurifier_HTMLModule
getChildDef() Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class. There is a similar function in HTMLPurifier_HTMLDefinition. HTMLPurifier_HTMLModule
getFixType() Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix HTMLPurifier_HTMLModule_Tidy
getFixesForLevel() Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it. HTMLPurifier_HTMLModule_Tidy
makeFixes() HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4
makeFixesForLevel() 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. HTMLPurifier_HTMLModule_Tidy
makeLookup() Convenience function that generates a lookup table with boolean true as value. HTMLPurifier_HTMLModule
mergeInAttrIncludes() Convenience function that merges a list of attribute includes into an attribute array. HTMLPurifier_HTMLModule
parseContents() Convenience function that transforms single-string contents into separate content model and content model type HTMLPurifier_HTMLModule
populate() Populates the module with transforms and other special-case code based on a list of fixes passed to it HTMLPurifier_HTMLModule_Tidy
setup() Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function. HTMLPurifier_HTMLModule_Tidy

Method Details

makeFixes() public method

public array makeFixes ( )