Definition that allows a set of elements, and allows no children.
More...
Definition that allows a set of elements, and allows no children.
- 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.
Definition at line 10 of file Optional.php.
◆ validateChildren()
| HTMLPurifier_ChildDef_Optional::validateChildren |
( |
|
$tokens_of_children, |
|
|
|
$config, |
|
|
|
$context |
|
) |
| |
Definition at line 14 of file Optional.php.
References $result.
15 $result = parent::validateChildren($tokens_of_children, $config, $context);
18 if (empty($tokens_of_children))
return true;
19 elseif ($this->whitespace)
return $tokens_of_children;
◆ $allow_empty
| HTMLPurifier_ChildDef_Optional::$allow_empty = true |
◆ $type
| HTMLPurifier_ChildDef_Optional::$type = 'optional' |
The documentation for this class was generated from the following file:
- Services/Html/HtmlPurifier/library/HTMLPurifier/ChildDef/Optional.php