Is it possible to create a link using Drupal's l() function without an href? For example, I'd like to create a link like the following:
<a name="my-anchor">A link here</a>
However, this seems to not be possible. The closest I can come is to use the following:
l(t('A link here'), '', array('external' => TRUE, 'attributes' => array('name' => 'my-anchor')));
<a href name="my-anchor">A link here</a>
... and that's not valid HTML. It also causes slightly strange behavior in some browsers depending on the CSS applied...