Property | Type | Description | |
---|---|---|---|
$allow_empty | This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed. | ||
$elements | Lookup array of all elements that this definition could possibly allow. | ||
$type | Used occasionally in terms of context. |
Method | Description | |
---|---|---|
getAllowedElements ( HTMLPurifier_Config $config ) : array | Get lookup of tag names that should not close this element automatically. | |
validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | array | Validates nodes according to definition and returns modification. |
public getAllowedElements ( HTMLPurifier_Config $config ) : array | ||
$config | HTMLPurifier_Config | HTMLPurifier_Config object |
return | array |
abstract public validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | array | ||
$children | HTMLPurifier_Node[] | Array of HTMLPurifier_Node |
$config | HTMLPurifier_Config | HTMLPurifier_Config object |
$context | HTMLPurifier_Context | HTMLPurifier_Context object |
return | boolean | array | true to leave nodes as is, false to remove parent node, array of replacement children |
public $allow_empty |
public $elements |