Property | Type | Description | |
---|---|---|---|
$doctype | Doctype object | ||
$info | Associative array of element names to HTMLPurifier_ElementDef. | ||
$info_attr_transform_post | Indexed list of HTMLPurifier_AttrTransform to be performed after validation. | ||
$info_attr_transform_pre | Indexed list of HTMLPurifier_AttrTransform to be performed before validation. | ||
$info_block_wrapper | String name of element used to wrap inline elements in block context. | ||
$info_content_sets | Nested lookup array of content set name (Block, Inline) to element name to whether or not it belongs in that content set. | ||
$info_global_attr | Associative array of global attribute name to attribute definition. | ||
$info_injector | Indexed list of HTMLPurifier_Injector to be used. | ||
$info_parent | String name of parent element HTML will be going into. | ||
$info_parent_def | Definition for parent element, allows parent element to be a tag that's not allowed inside the HTML fragment. | ||
$info_tag_transform | Associative array of deprecated tag name to HTMLPurifier_TagTransform. | ||
$manager | |||
$type |
Method | Description | |
---|---|---|
__construct ( ) | Performs low-cost, preliminary initialization. | |
addAttribute ( string $element_name, string $attr_name, mixed $def ) | Adds a custom attribute to a pre-existing element | |
addBlankElement ( string $element_name ) : HTMLPurifier_ElementDef | Adds a blank element to your HTML definition, for overriding existing behavior | |
addElement ( $element_name, $type, $contents, $attr_collections, $attributes = [] ) | Adds a custom element to your HTML definition | |
getAnonymousModule ( ) : HTMLPurifier_HTMLModule | Retrieves a reference to the anonymous module, so you can bust out advanced features without having to make your own module. | |
parseTinyMCEAllowedList ( array $list ) : array | Parses a TinyMCE-flavored Allowed Elements and Attributes list into separate lists for processing. Format is element[attr1|attr2],element2. |
Method | Description | |
---|---|---|
doSetup ( HTMLPurifier_Config $config ) | ||
processModules ( HTMLPurifier_Config $config ) | Extract out the information from the manager | |
setupConfigStuff ( HTMLPurifier_Config $config ) | Sets up stuff based on config. We need a better way of doing this. |
public addBlankElement ( string $element_name ) : HTMLPurifier_ElementDef | ||
$element_name | string | |
return | HTMLPurifier_ElementDef |
public addElement ( $element_name, $type, $contents, $attr_collections, $attributes = [] ) |
protected doSetup ( HTMLPurifier_Config $config ) | ||
$config | HTMLPurifier_Config |
public getAnonymousModule ( ) : HTMLPurifier_HTMLModule | ||
return | HTMLPurifier_HTMLModule |
public parseTinyMCEAllowedList ( array $list ) : array | ||
$list | array | String list to parse |
return | array |
protected processModules ( HTMLPurifier_Config $config ) | ||
$config | HTMLPurifier_Config |
protected setupConfigStuff ( HTMLPurifier_Config $config ) | ||
$config | HTMLPurifier_Config |
public $info |
public $info_attr_transform_post |
public $info_attr_transform_pre |
public $info_block_wrapper |
public $info_content_sets |
public $info_global_attr |
public $info_injector |
public $info_parent |
public $info_parent_def |
public $info_tag_transform |