extends |
HTMLPurifier_AttrDef |
---|
Validates an IPv4 address
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
validate(string $aIP, 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
Overriden byImplements |
# | ||||||
protected
|
_loadRegex()
Lazy load function to prevent regex from being stuffed in
cache.
Lazy load function to prevent regex from being stuffed in cache. |
# |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
Properties | |||
---|---|---|---|
protected
|
|
$ip4
IPv4 regex, protected so that IPv6 can reuse it.
IPv4 regex, protected so that IPv6 can reuse it. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |