| 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.
$id The ID to clean
The cleaned ID
includes/
<?php
function form_clean_id($id = NULL) {
$id = str_replace('][', '-', $id);
return $id;
}
?>