Svg::validate()
Validates file contents
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |
– | |
$isExternal | bool |
false |
Whether the string is from an external file that may be accessed directly |
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the file couldn't be parsed |
Kirby\Exception\InvalidArgumentException |
If the file didn't pass validation |
Parent class
Kirby\Sane\Svg
inherited from Kirby\Sane\DomHandler