extends |
HTMLPurifier_AttrDef |
---|
Validates a host according to the IPv4, IPv6 and DNS (future) specifications.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct()
|
# | ||||||
public
|
validate(string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|string
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition. Parameters
Implements |
# |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
Properties | |||
---|---|---|---|
protected
|
|
$ipv4
IPv4 sub-validator.
IPv4 sub-validator. |
# |
protected
|
|
$ipv6
IPv6 sub-validator.
IPv6 sub-validator. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |