Sanitizes a CSS style attribute (i.e.
More...
|
static | newDefault () |
| Create and return a default StyleAttributeSanitizer.
|
|
|
| $propertySanitizer |
|
| $sanitizationErrors = [] |
|
Sanitizes a CSS style attribute (i.e.
<tag style="...">
)
- See also
- https://www.w3.org/TR/2013/REC-css-style-attr-20131107/
◆ __construct()
Wikimedia\CSS\Sanitizer\StyleAttributeSanitizer::__construct |
( |
PropertySanitizer | $propertySanitizer | ) |
|
- Parameters
-
PropertySanitizer | $propertySanitizer | Sanitizer to test property declarations. Probably an instance of StylePropertySanitizer. |
◆ doSanitize()
Wikimedia\CSS\Sanitizer\StyleAttributeSanitizer::doSanitize |
( |
CSSObject | $object | ) |
|
|
protected |
◆ newDefault()
static Wikimedia\CSS\Sanitizer\StyleAttributeSanitizer::newDefault |
( |
| ) |
|
|
static |
Create and return a default StyleAttributeSanitizer.
- Note
- This method exists more to be an example of how to put everything together than to be used directly.
- Returns
- StyleAttributeSanitizer
◆ sanitizeString()
Wikimedia\CSS\Sanitizer\StyleAttributeSanitizer::sanitizeString |
( |
| $string | ) |
|
Sanitize a string value.
- Parameters
-
- Returns
- DeclarationList
The documentation for this class was generated from the following file: