Toolbar: Different behaviour addText() and setItemText()

var mand = “1” + “-” + “SomeText - Name1 & Name2”;

webBar.addText(“mandant”, anzahlElementeButtonbar++, "Mandant: " + mand); fails

webBar.setItemText(“mandant”, "Mandant: " + mand); works correctly

Might it be an encoding problem?
Perhaps the & or - causing the problem?

I feed both functions with same parameters.
Whats going wrong?

Script stops using first method with error:
“itemData.getAttribute is not a function
[Break on this error] “

</…xValue,setWidth,getWidth”.split(”,")"

try to use & instead of &

var mand = “1” + “-” + “SomeText - Name1 & Name2”;
webBar.addText(“mandant”, anzahlElementeButtonbar++, "Mandant: " + mand);

Do we only have to escape & or escape everything for html (ä,ü,etc)?!