extends |
HTMLPurifier_AttrDef |
---|
Validates a Percentage as defined by the CSS spec.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(bool $non_negative = false)
Parameters
|
# | ||||||
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
|
|
$number_def
Instance to defer number validation to.
Instance to defer number validation to. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |