Skip to content

Kirby 4.4.1

F::safeName()

Sanitize a file's full name (filename and extension) to strip unwanted special characters

F::safeName(string $string): string

Parameters

Name Type Default Description
$string * string The file name

Return type

string

Parent class

Kirby\Filesystem\F