\HTMLPurifier_ChildDef
Defines allowed child nodes and validates tokens against it.
Synopsis
class HTMLPurifier_ChildDef
{
- // members
- public $type;
- public $allow_empty;
- public array $elements = ;
- // methods
- public void getAllowedElements()
- public abstract bool validateChildren()
Members
public
-
$allow_empty
Bool that indicates whether or not an empty array of children is okay -
$elements
Lookup array of all elements that this definition could possibly allow -
$type
Type of child definition, usually right-most part of class name lowercase.
Methods
public
- getAllowedElements() — Get lookup of tag names that should not close this element automatically.
- validateChildren() — Validates nodes according to definition and returns modification.