Class HTMLPurifier_ChildDef_Required
Inheritance | HTMLPurifier_ChildDef_Required » HTMLPurifier_ChildDef |
---|---|
Subclasses | HTMLPurifier_ChildDef_Optional, HTMLPurifier_ChildDef_StrictBlockquote |
Definition that allows a set of elements, but disallows empty children.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$allow_empty | HTMLPurifier_ChildDef_Required | ||
$elements | Lookup table of allowed elements. | HTMLPurifier_ChildDef_Required | |
$type | HTMLPurifier_ChildDef_Required |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$whitespace | Whether or not the last passed node was all whitespace. | HTMLPurifier_ChildDef_Required |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | HTMLPurifier_ChildDef_Required | |
getAllowedElements() | Get lookup of tag names that should not close this element automatically. | HTMLPurifier_ChildDef |
validateChildren() | HTMLPurifier_ChildDef_Required |
Property Details
Method Details
public void __construct ( $elements ) | ||
$elements | array|string | List of allowed element names (lowercase). |
public array validateChildren ( $children, $config, $context ) | ||
$children | array | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |