1.12.x drupal.inc drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => ''))
1.10.x drupal.inc drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => ''))
1.11.x drupal.inc drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => ''))
1.7.x drupal.inc drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => ''))

Prepares a string for use as a CSS identifier (element, class, or ID name).

Deprecated

since 1.0.0

See also

backdrop_clean_css_identifier()

Related topics

File

includes/drupal.inc, line 919
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => '')) {
  return backdrop_clean_css_identifier($identifier, $filter);
}