extends |
HTMLPurifier_ChildDef |
---|
Custom validation class, accepts DTD child definitions
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct($dtd_regex)
|
# | ||||||
protected
|
_compileRegex()
Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)
Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex) |
# | ||||||
public
|
validateChildren(HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
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 = 'custom'
|
# |
public
|
|
$allow_empty = false
|
# |
public
|
|
$dtd_regex
Allowed child pattern as defined by the DTD.
Allowed child pattern as defined by the DTD. |
# |
Properties inherited from HTMLPurifier_ChildDef |
---|
$elements |