Sanitize a page path name

Returned path is not guaranteed to be valid or match a page, just sanitized.

Usage

// basic usage
$string = $sanitizer->pagePathName(string $value);

// usage with all arguments
$string = $sanitizer->pagePathName(string $value, bool $beautify = false, int $maxLength = 1024);

Arguments

NameType(s)Description
$valuestring

Value to sanitize

$beautify (optional)bool

Beautify the value? (default=false)

$maxLength (optional)int

Maximum length (default=1024)

Return value

string

Sanitized path name


$sanitizer methods and properties

API reference based on ProcessWire core version 3.0.97