HTMLPurifier 4.4.0
|
Validates a host according to the IPv4, IPv6 and DNS (future) specifications. More...
Public Member Functions | |
__construct () | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. | |
__construct () | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. | |
Protected Attributes | |
$ipv4 | |
Instance of HTMLPurifier_AttrDef_URI_IPv4 sub-validator. | |
$ipv6 | |
Instance of HTMLPurifier_AttrDef_URI_IPv6 sub-validator. |
Validates a host according to the IPv4, IPv6 and DNS (future) specifications.
HTMLPurifier_AttrDef_URI_Host::__construct | ( | ) |
Definition at line 10418 of file HTMLPurifier.standalone.php.
HTMLPurifier_AttrDef_URI_Host::validate | ( | $ | string, |
$ | config, | ||
$ | context | ||
) |
Validates and cleans passed string according to a definition.
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
HTMLPurifier_AttrDef_URI_Host::validate | ( | $ | string, |
$ | config, | ||
$ | context | ||
) |
Validates and cleans passed string according to a definition.
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 10423 of file HTMLPurifier.standalone.php.
HTMLPurifier_AttrDef_URI_Host::$ipv4 [protected] |
Instance of HTMLPurifier_AttrDef_URI_IPv4 sub-validator.
Definition at line 12 of file Host.php.
Referenced by validate().
HTMLPurifier_AttrDef_URI_Host::$ipv6 [protected] |
Instance of HTMLPurifier_AttrDef_URI_IPv6 sub-validator.