HTMLPurifier_ChildDef_Empty
extends HTMLPurifier_ChildDef
in package
Definition that disallows all elements.
Tags
Table of Contents
Properties
- $allow_empty : mixed
- Indicates whether or not an empty array of children is okay.
- $elements : mixed
- Lookup array of all elements that this definition could possibly allow.
- $type : mixed
- Type of child definition, usually right-most part of class name lowercase.
Methods
- __construct() : mixed
- getAllowedElements() : array<string|int, mixed>
- Get lookup of tag names that should not close this element automatically.
- validateChildren() : array<string|int, mixed>
- Validates nodes according to definition and returns modification.
Properties
$allow_empty
Indicates whether or not an empty array of children is okay.
public
mixed
$allow_empty
= \true
Tags
$elements
Lookup array of all elements that this definition could possibly allow.
public
mixed
$elements
= array()
Tags
$type
Type of child definition, usually right-most part of class name lowercase.
public
mixed
$type
= 'empty'
Tags
Methods
__construct()
public
__construct() : mixed
getAllowedElements()
Get lookup of tag names that should not close this element automatically.
public
getAllowedElements(HTMLPurifier_Config $config) : array<string|int, mixed>
All other elements will do so.
Parameters
- $config : HTMLPurifier_Config
-
HTMLPurifier_Config object
Return values
array<string|int, mixed>validateChildren()
Validates nodes according to definition and returns modification.
public
validateChildren(array<string|int, HTMLPurifier_Node> $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : array<string|int, mixed>
Parameters
- $children : array<string|int, HTMLPurifier_Node>
- $config : HTMLPurifier_Config
- $context : HTMLPurifier_Context