Using a & sign in a link caption

3
I am using a string attribute as a parameter for the caption of a button that is rendered as a link. However when the string contains an ampersand sign (&) it is rendered as "& amp;". Does anyone know how to fix this?
asked
2 answers
2

This was a bug that was fixed in 6.2.0

answered
1

One solution is to add the following javascript snippet to the page:

window.onload = function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
links[i].innerHTML = links[i].innerHTML.replace('&amp;','&'); 
}};

But I wonder if anyone has a more clean solution.

answered