function _crumbs_validate_separator_xss in Crumbs, the Breadcrumbs suite 7.2
Element validate callback for separator string.
Parameters
array $element:
array $form_state:
1 string reference to '_crumbs_validate_separator_xss'
- crumbs_admin_display_form in admin/
crumbs.admin.inc - The form displayed on admin/structure/crumbs/display
File
- admin/
crumbs.admin.inc, line 220
Code
function _crumbs_validate_separator_xss($element, $form_state) {
$string = $element['#value'];
$filtered = filter_xss_admin($string);
if ($string !== $filtered) {
form_error($element, t('%name contains unsafe HTML. Maybe you meant %safe instead.', array(
'%name' => $element['#title'],
'!safe' => '"<code>' . check_plain($filtered) . '</code>"',
)));
}
}