Svg::sanitizeFile()
Sanitizes the contents of a file by overwriting the file with the sanitized version
Svg::sanitizeFile(string $file): void
Parameters
| Name | Type | Default |
|---|---|---|
| $filerequired | string |
no default value |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\Exception |
If the file does not exist |
Kirby\Exception\Exception |
On other errors |
Parent class
Kirby\Sane\Svg
inherited from Kirby\Sane\Handler