I have a label
with a ribbon callback getLabel
that I want to include ampersands in.
I know that, when defining ribbon XML, I need to escape and double it, so &
becomes &&
.
But, escaping doesn't work in a callback, which makes sense because it's expecting a non-escaped value. And doubling up just makes the second ampersand underlined. If I add a third ampersand, the first two correctly output without an underline, but the next character is underlined.
How do I do this from a callback without an underline?