Class HTMLPurifier_ChildDef_Custom
Custom validation class, accepts DTD child definitions
- HTMLPurifier_ChildDef
- HTMLPurifier_ChildDef_Custom
Warning:
Currently this class is an all or nothing proposition, that is, it will only
give a bool return value.
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php
public
|
|
protected
|
|
public
boolean
|
#
validateChildren( $tokens_of_children $tokens_of_children, $config $config, $context $context )
Validates nodes according to definition and returns modification. |
getAllowedElements()
|
public
string
|
$type | 'custom' |
#
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |
public
boolean
|
$allow_empty | false |
#
Bool that indicates whether or not an empty array of children is okay |
public
|
$dtd_regex |
|
#
Allowed child pattern as defined by the DTD |
$elements
|