extends |
HTMLPurifier_AttrDef |
|---|
Validates a number as defined by the CSS spec.
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
public
|
__construct(bool $non_negative = false)
Parameters
Overriden by |
# | ||||||
public
|
validate(string $number, HTMLPurifier_Config $config, HTMLPurifier_Context $context): string|bool
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition. Parameters
Overriden byImplements |
# | ||||||
| Methods inherited from HTMLPurifier_AttrDef |
|---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
| Properties | |||
|---|---|---|---|
protected
|
|
$non_negative = false
Indicates whether or not only positive values are allowed.
Indicates whether or not only positive values are allowed. |
# |
| Properties inherited from HTMLPurifier_AttrDef |
|---|
$minimized, $required |