public static Html::cleanCssIdentifier($identifier, array $filter = array(
' ' => '-',
'_' => '-',
'/' => '-',
'[' => '-',
']' => '',
))
Prepares a string for use as a CSS identifier (element, class, or ID name).
http://www.w3.org/TR/CSS21/syndata.html#characters shows the syntax for valid CSS identifiers (including element names, classes, and IDs in selectors.)
Parameters
string $identifier: The identifier to clean.
array $filter: An array of string replacements to us