TODO: Use # here...but out of any reason it gets encoded to %23 in html
what were you trying to do?
an URL fragment?
the function t encodes everything to HTML, but can handle a 'fragment' $option
TODO: Use # here...but out of any reason it gets encoded to %23 in html
what were you trying to do?
an URL fragment?
the function t encodes everything to HTML, but can handle a 'fragment' $option
Comments
Comment #1
eugenmayer commentedOh, well thats great. Thanks for the information...wasnt aware of that..will include that!
Comment #2
eugenmayer commentedHmm after looking into it, i cant see you point.
i mean then l($label,'#',array('fragment'=>true)) will not work it will result in a link with an encoded destination instead of #
Comment #3
arhak commentedno, fragment is not boolean
l(t('the text'), 'some/relative/path', array('fragment' => 'anchor_name'))will result in
<a href="some/relative/path#anchor_name">the text</a>the $option array also allows
'absolute' => truefor absolute pathComment #4
eugenmayer commentedThanks, will implement that!
Comment #5
eugenmayer commentedfixed in 2.2
Comment #6
eugenmayer commentedreleased in 2.2
Comment #7
eugenmayer commented