extends |
HTMLPurifier_AttrDef |
---|
Validates the HTML attribute ID.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(bool $selector = false)
|
# | ||||||
public
|
validate(string $id, 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
|
|
$selector
Determines whether or not we're validating an ID in a CSS
selector context.
Determines whether or not we're validating an ID in a CSS selector context. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |