Class HTMLPurifier_ChildDef_Required

InheritanceHTMLPurifier_ChildDef_Required » HTMLPurifier_ChildDef
SubclassesHTMLPurifier_ChildDef_Optional, HTMLPurifier_ChildDef_StrictBlockquote

Definition that allows a set of elements, but disallows empty children.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$allow_empty HTMLPurifier_ChildDef_Required
$elements Lookup table of allowed elements. HTMLPurifier_ChildDef_Required
$type HTMLPurifier_ChildDef_Required

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$whitespace Whether or not the last passed node was all whitespace. HTMLPurifier_ChildDef_Required

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() HTMLPurifier_ChildDef_Required
getAllowedElements() Get lookup of tag names that should not close this element automatically. HTMLPurifier_ChildDef
validateChildren() HTMLPurifier_ChildDef_Required

Property Details

$allow_empty public property
public $allow_empty false
$elements public property
public $elements = []
$type public property
public $type 'required'
$whitespace protected property
protected $whitespace false

Method Details

__construct() public method

public void __construct ( $elements )
$elements array|string

List of allowed element names (lowercase).

validateChildren() public method

public array validateChildren ( $children, $config, $context )
$children array
$config HTMLPurifier_Config
$context HTMLPurifier_Context