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, $beautify = false, int $maxLength = 2048);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string | Value to sanitize |
beautify (optional) | bool, int | Beautify the value? (default=false). Maybe any of the following:
|
maxLength (optional) | int | Maximum length (default=2048) |
Return value
string
Sanitized path name
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236