diff --git a/custom_breadcrumbs.module b/custom_breadcrumbs.module index 13170ba..247790e 100644 --- a/custom_breadcrumbs.module +++ b/custom_breadcrumbs.module @@ -109,7 +109,7 @@ function custom_breadcrumbs_menu() { 'file' => 'custom_breadcrumbs.admin.inc', 'type' => MENU_CALLBACK, ); - + $items['admin/config/user-interface/custom-breadcrumbs'] = array( 'title' => 'Custom breadcrumbs settings', 'description' => 'Manage sitewide configuration settings to customize the breadcrumb trail.', @@ -260,7 +260,7 @@ function custom_breadcrumbs_form_node_form_alter(&$form, $form_state) { $output = '

' . t('Custom breadcrumbs have not been created for this %type page. Use the Custom Breadcrumbs Administration Page to create a breadcrumb.', array('%type' => $node->type, '@link' => url('admin/structure/custom_breadcrumbs'))) . '

'; $form['custom_breadcrumbs']['help_text'] = array('#markup' => $output); } - + } } @@ -388,7 +388,7 @@ function _custom_breadcrumbs_get_breadcrumb($breadcrumb, $objs, &$locations) { $types = custom_breadcrumbs_token_types($objs); // Mourning the loss of token_replace_multiple(). foreach ($titles as $index => $value) { - $titles[$index] = token_replace($value, $types, array('clear' => TRUE)); + $titles[$index] = strip_tags(token_replace($value, $types, array('clear' => TRUE))); } foreach ($paths as $index => $value) { $paths[$index] = token_replace($value, $types, array('clear' => TRUE));