Class HTMLPurifier_ChildDef_Optional

InheritanceHTMLPurifier_ChildDef_Optional » HTMLPurifier_ChildDef_Required » HTMLPurifier_ChildDef

Definition that allows a set of elements, and allows no children.

Public Properties

Hide inherited properties

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

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_Optional

Property Details

$allow_empty public property
public $allow_empty true
$type public property
public $type 'optional'

Method Details

validateChildren() public method

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