Svg::sanitize()
Sanitizes the given string
Svg::sanitize(string $string): string
Parameters
| Name | Type | Default |
|---|---|---|
| $string * | string |
– |
Return type
string
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the file couldn't be parsed |
Parent class
Kirby\Sane\Svg inherited from Kirby\Sane\DomHandler