Right now, the current code causes this affect *notice the <li> wrapping all the <a>. I would like to be able to wrap each <a> in its own <li>
Code:
<ul>
<li>
<a href='http://test>Test/a>
<a href='http://test>Test/a>
<a href='http://test>Test/a>
</li>
</ul>
here is the php code

PHP Code:
$a[] = "<a href='$tag_link' class='tag-link-$tag_id'>$tag</a>";
    }

    switch ( 
$format ) :
    case 
'array' :
        
$return =& $a;
        break;
    case 
'list' :
        
$return "<ul class='wp-tag-cloud'>\n\t<li>";
        
$return .= join("<li>\n\t</li>"$a);
        
$return .= "</li>\n</ul>\n";
        break;
    default :
        
$return join("\n"$a);
        break;
    endswitch; 
Thanks for any help.