DomHandler::validate()
Validates file contents
DomHandler::validate(string $string, bool $isExternal = false): void
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $stringrequired | string |
no default value | |
| $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 |