Class HTMLPurifier_ChildDef_Required
Definition that allows a set of elements, but disallows empty children.
- HTMLPurifier_ChildDef
- HTMLPurifier_ChildDef_Required
public
|
|
public
boolean
|
#
validateChildren( $tokens_of_children $tokens_of_children, $config $config, $context $context )
Validates nodes according to definition and returns modification. |
getAllowedElements()
|
public
array
|
$elements | array() |
#
Lookup table of allowed elements. |
protected
boolean
|
$whitespace | false |
#
Whether or not the last passed node was all whitespace. |
public
boolean
|
$allow_empty | false |
#
Bool that indicates whether or not an empty array of children is okay |
public
string
|
$type | 'required' |
#
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |