AttributeSanitizerInterface
in
Implements attribute-specific sanitization logic.
Tags
Table of Contents
Methods
- getSupportedAttributes() : array<int, string>|null
- Returns the list of attributes names supported, or null to support all attributes.
- getSupportedElements() : array<int, string>|null
- Returns the list of element names supported, or null to support all elements.
- sanitizeAttribute() : string|null
- Returns the sanitized value of a given attribute for the given element.
Methods
getSupportedAttributes()
Returns the list of attributes names supported, or null to support all attributes.
public
getSupportedAttributes() : array<int, string>|null
Return values
array<int, string>|nullgetSupportedElements()
Returns the list of element names supported, or null to support all elements.
public
getSupportedElements() : array<int, string>|null
Return values
array<int, string>|nullsanitizeAttribute()
Returns the sanitized value of a given attribute for the given element.
public
sanitizeAttribute(string $element, string $attribute, string $value, HtmlSanitizerConfig $config) : string|null
Parameters
- $element : string
- $attribute : string
- $value : string
- $config : HtmlSanitizerConfig