Either use
1 |
JFilterOutput:: linkXHTMLSafe ($string) |
This method processes a string and replaces all instances of & with & in links only
or (probably better)
1 |
JRoute::_($string) |
This one doesn’t pass a full url, just a site local one