Class HTMLPurifier_HTMLDefinition
Definition of the purified HTML that describes allowed children, attributes, and many other things.
Conventions:
All member variables that are prefixed with info (including the main $info array) are used by HTML Purifier internals and should not be directly edited when customizing the HTMLDefinition. They can usually be set via configuration directives or custom modules.
On the other hand, member variables without the info prefix are used internally by the HTMLDefinition and MUST NOT be used by other HTML Purifier internals. Many of them, however, are public, and may be edited by userspace code to tweak the behavior of HTMLDefinition.
- HTMLPurifier_Definition
- HTMLPurifier_HTMLDefinition
Warning: Directives that change this object's structure must be in the HTML or Attr namespace!
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
public
|
#
addAttribute( string $element_name, string $attr_name, mixed $def )
Adds a custom attribute to a pre-existing element |
public
|
#
addElement( mixed $element_name, mixed $type, mixed $contents, mixed $attr_collections, mixed $attributes = array() )
Adds a custom element to your HTML definition |
public
|
#
addBlankElement( string $element_name )
Adds a blank element to your HTML definition, for overriding existing behavior |
public
|
#
getAnonymousModule( )
Retrieves a reference to the anonymous module, so you can bust out advanced features without having to make your own module. |
public
|
|
protected
|
|
protected
|
|
protected
|
#
setupConfigStuff(
Sets up stuff based on config. We need a better way of doing this. |
public
array
|
#
parseTinyMCEAllowedList( array $list )
Parses a TinyMCE-flavored Allowed Elements and Attributes list into separate lists for processing. Format is element[attr1|attr2],element2... |
setup()
|
public
array
|
$info | array() |
#
Associative array of element names to HTMLPurifier_ElementDef. |
public
array
|
$info_global_attr | array() |
#
Associative array of global attribute name to attribute definition. |
public
string
|
$info_parent | 'div' |
#
String name of parent element HTML will be going into. |
public
mixed
|
$info_parent_def |
|
#
Definition for parent element, allows parent element to be a tag that's not allowed inside the HTML fragment. |
public
string
|
$info_block_wrapper | 'p' |
#
String name of element used to wrap inline elements in block context. |
public
array
|
$info_tag_transform | array() |
#
Associative array of deprecated tag name to HTMLPurifier_TagTransform. |
public
array
|
$info_attr_transform_pre | array() |
#
Indexed list of HTMLPurifier_AttrTransform to be performed before validation. |
public
array
|
$info_attr_transform_post | array() |
#
Indexed list of HTMLPurifier_AttrTransform to be performed after validation. |
public
array
|
$info_content_sets | array() |
#
Nested lookup array of content set name (Block, Inline) to element name to whether or not it belongs in that content set. |
public
array
|
$info_injector | array() |
#
Indexed list of HTMLPurifier_Injector to be used. |
public
mixed
|
$doctype |
|
#
Doctype object |
public
string
|
$type | 'HTML' |
|
public
mixed
|
$manager |
|
$optimized,
$setup
|