Once again, I have no choice but to ask you guys for help on this one as i'm completely baffled and I've been trying to solve it this past hour.
I have some php code structured something like this :
function build($url=""){
$output = '<ul class= "bc-ul">';
$output .= '<li class= "bc-li"><a class="bc" href=" complex concatenation of link here">link1</a></li>';
$output .= '<li class= "bc-li"><a class= "bc">link2</a></li>';
$output .= '<li class= "bc-li"><a class= "bc">link3</a></li>';
$output .= '</ul>';
return $output;
}
All anchors href's have a complex concatenated url.. The problem is that when $output is displayed using php's echo $output, extra empty anchor tags are generated inside each list. Anyone has an idea what causes this kind of behavior?
Result :
<li>
<a class="bc-li">link1</a>
<a></a> <- empty tag here
</li>