extends |
HTMLPurifier_ChildDef |
---|
Definition for list containers ul and ol.
What does this do? The big thing is to handle ol/ul at the top level of list nodes, which should be handled specially by /folding/ them into the previous list node. We generally shouldn't ever see other disallowed elements, because the autoclose behavior in MakeWellFormed handles it.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
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 Implements |
# |
Methods inherited from HTMLPurifier_ChildDef |
---|
getAllowedElements(), |
Properties | |||
---|---|---|---|
public
|
|
$type = 'list'
|
# |
public
|
|
$elements = ['li' => true, 'ul' => true, 'ol' => true]
|
# |
public
|
|
$whitespace
|
# |
Properties inherited from HTMLPurifier_ChildDef |
---|
$allow_empty, |