Sanitize to an ASCII-only HTML attribute name
Available since version 3.0.133.
Usage
// basic usage
$string = $sanitizer->attrName(string $value);
// usage with all arguments
$string = $sanitizer->attrName(string $value, int $maxLength = 255);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string | |
maxLength (optional) | int |
Return value
string
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236