form_clean_id($id = NULL)
drupal/includes/form.inc, line 1593
Remove invalid characters from an HTML ID attribute string.
$id The ID to clean.
The cleaned ID.
| Name | Description |
|---|---|
| Form generation | Functions to enable the processing and display of HTML forms. |
function form_clean_id($id = NULL) {
$id = str_replace(array('][', '_', ' '), '-', $id);
return $id;
}