Skip to content

Kirby 5.0.2

Html::validateFile()

Validates the contents of a file

Html::validateFile(string $file): void

Parameters

Name Type Default
$filerequired string no default value

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file didn't pass validation
Kirby\Exception\Exception If the file does not exist
Kirby\Exception\Exception On other errors

Parent class

Kirby\Sane\Html inherited from Kirby\Sane\Handler