form_clean_id
- Versions
- 4.7 – 5
form_clean_id($id = NULL)- 6
form_clean_id($id = NULL, $flush = FALSE)
Remove invalid characters from an HTML ID attribute string.
Parameters
$id The ID to clean
Return value
The cleaned ID
Related topics
Code
includes/form.inc, line 1190
<?php
function form_clean_id($id = NULL) {
$id = str_replace('][', '-', $id);
return $id;
}
?>Login or register to post comments 