Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.315
diff -u -F^f -r1.315 theme.inc
--- includes/theme.inc	5 Sep 2006 10:11:29 -0000	1.315
+++ includes/theme.inc	12 Oct 2006 23:50:07 -0000
@@ -530,12 +530,18 @@ function theme_links($links, $attributes
       $extra_class = ($i == 1) ? 'first ' : (($i == $num_links) ? 'last ' : '');
       $output .= '<li class="'. $extra_class . $class .'">';
 
+      // Is the title HTML?
+      $html = isset($link['html']) && $link['html'];
+
       if ($link['href']) {
-        $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']);
+        $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
       }
       else if ($link['title']) {
         //Some links are actually not links, but we wrap these in <span> for adding title and class attributes
-        $output .= '<span'. drupal_attributes($link['attributes']) .'>'. check_plain($link['title']) .'</span>';
+        if (!$html) {
+          $link['title'] = check_plain($link['title']);
+        }
+        $output .= '<span'. drupal_attributes($link['attributes']) .'>'. $link['title'] .'</span>';
       }
 
       $i++;
