Index: category-template.php
===================================================================
--- category-template.php	(revision 30834)
+++ category-template.php	(working copy)
@@ -1278,9 +1278,10 @@
  * @param string $before Optional. Before list.
  * @param string $sep Optional. Separate items using this.
  * @param string $after Optional. After list.
+ * @param string $term_template Optional. Template for displaying a single term in the list. Default is the term name linked to its archive
  * @return string|bool|WP_Error A list of terms on success, false if there are no terms, WP_Error on failure.
  */
-function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '' ) {
+function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '', $term_template = '<a href="%1$s">%2$s</a>' ) {
 	$terms = get_the_terms( $id, $taxonomy );
 
 	if ( is_wp_error( $terms ) )
@@ -1293,7 +1294,7 @@
 		$link = get_term_link( $term, $taxonomy );
 		if ( is_wp_error( $link ) )
 			return $link;
-		$term_links[] = '<a href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
+		$term_links[] = wp_sprintf( $term_template, esc_attr( get_term_link($term) ), $term->name );
 	}
 
 	/**
