extends |
HTMLPurifier_ChildDef |
---|
Definition that allows a set of elements, but disallows empty children.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(array|string $elements)
Parameters
|
# | ||||||
public
|
validateChildren(array $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context): array
Validates nodes according to definition and returns modification.
Validates nodes according to definition and returns modification. Parameters
Returnstrue to leave nodes as is, false to remove parent node, array of replacement children Overriden by
Implements |
# |
Methods inherited from HTMLPurifier_ChildDef |
---|
getAllowedElements(), |
Properties | |||
---|---|---|---|
public
|
|
$elements = []
Lookup table of allowed elements.
Lookup table of allowed elements. |
# |
protected
|
|
$whitespace = false
Whether or not the last passed node was all whitespace.
Whether or not the last passed node was all whitespace. |
# |
public
|
|
$allow_empty = false
|
# |
public
|
|
$type = 'required'
|
# |