Filters a string, e.g., "Petty theft" to "petty-theft"
public static filter ( string $text, integer $length = 60, string $language = "", boolean $file_name = false, boolean $use_remove_list = true, boolean $lower_case = true, boolean $treat_underscore_as_space = true ) | ||
$text | string | The text to return filtered |
$length | integer | The length (after filtering) of the string to be returned |
$language | string | The transliteration language, passed down to downcode() |
$file_name | boolean | Whether there should be and additional filter considering this is a filename |
$use_remove_list | boolean | Whether you want to remove specific elements previously set in self::$remove_list |
$lower_case | boolean | Whether you want the filter to maintain casing or lowercase everything (default) |
$treat_underscore_as_space | boolean | Treat underscore as space, so it will replaced with "-" |