protected function cleanDefaultIdOptions($options, $onlyUsed, $count)
{
// Remove empty values.
foreach ($options as $mixKey => $mixValue) {
// Remove html/php tags.
$mixValue = trim(strip_tags($mixValue));
if ($mixValue === '' || $mixValue === null || $onlyUsed && $count[$mixKey] === 0) {
unset($options[$mixKey]);
}
}
return $options;
}