Documentation

UrlAttributeSanitizer
in package
implements AttributeSanitizerInterface

FinalYes
Tags
author

Titouan Galopin galopintitouan@gmail.com

Table of Contents

Interfaces

AttributeSanitizerInterface
Implements attribute-specific sanitization logic.

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>|null

getSupportedElements()

Returns the list of element names supported, or null to support all elements.

public getSupportedElements() : array<int, string>|null
Return values
array<int, string>|null

sanitizeAttribute()

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
Return values
string|null

        
On this page

Search results