How to remove href from last breadcrumb? I'm altering breadcrumbs using the theme_menu_breadcrumb_alter function and was wondering what can I do to make the last breadcrumb non-clickable (i.e. it should be just text, not a link).

I tried making the href value to an empty string but that just returns a link to the base URL.

How can I do this?
If anyone else is looking for this, here is one way to solve it:

In template.php add the following function

function theme_breadcrumb($variables){
    // get an array with all the breadcrumbs (and their html)
    $breadcrumb = $variables['breadcrumb'];

    // remove the html from the last one and put it into new variable
    $cur_page_brdcrmb = strip_tags(end($breadcrumb));

    //remove the last element from the original breadcrumb array
    array_pop($breadcrumb);

    // add our html free breadcrumb to the array
    $breadcrumb[] = $cur_page_brdcrmb;

    // build the output and return it
    $output = '&lt;div class="breadcrumb"&gt;' . implode(' » ', $breadcrumb) . '&lt;/div&gt;';
    return $output;
}