How to set Form API link href to # hashtag In Form API when creating a link, the output a-anchor will have a prefix of "en/" in front of whatever I set as the href value and if href is set to "#" it will be output with the language prefix and # is escaped and becomes a code something like "en/%23"

this is the code:

$element['add_address'] = array(
            '#type' =&gt; 'link',
            '#title' =&gt; t('Add new address'),
            '#href' =&gt; '#',
        );


I need that link to not have a href destination value, as it's supposed to react to javascript only. I know I could do a preventDefault() or any of the same resulting bypasses with JS, but I'm curious how to make a empty anchor with the form API.

Thanks,

Alari
Not sure if this will work, give this a try

'#href' =&gt; '&amp;num',  OR  '#href' =&gt;'&amp;#x00023', OR '#href' =&gt; '&amp;#35',