Class HTMLPurifier_ChildDef_Optional
Definition that allows a set of elements, and allows no children.
- HTMLPurifier_ChildDef
- HTMLPurifier_ChildDef_Required
- HTMLPurifier_ChildDef_Optional
Note:
This is a hack to reuse code from HTMLPurifier_ChildDef_Required, really, one
shouldn't inherit from the other. Only altered behavior is to overload a
returned false with an array. Thus, it will never return false.
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php
public
boolean
|
#
validateChildren( $tokens_of_children $tokens_of_children, $config $config, $context $context )
Validates nodes according to definition and returns modification. |
__construct()
|
getAllowedElements()
|
public
boolean
|
$allow_empty | true |
#
Bool that indicates whether or not an empty array of children is okay |
public
string
|
$type | 'optional' |
#
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |
$elements,
$whitespace
|