Properties and Methods

$sanitizer->pageName($value, true)

Introduced in Version 2.0


Sanitizes a value for a URL friendly Page name and cleans out leading or trailing dashes, and converts double dashes to single dashes. Use this if you are passing in a headline to convert to a page name (for example).

If second parameter is "Sanitizer::translate" it will use the language char conversion defined in InputfieldPageName module settings.

Post Comment