- return wxString("<A HREF=\"") + wxStaticText::RemoveMarkup(url) + "\">"
- + wxStaticText::RemoveMarkup(text) + "</A>";
+ // Any "&"s in the text should appear on the screen and not be (mis)
+ // interpreted as mnemonics.
+ return wxString::Format("<A HREF=\"%s\">%s</A>",
+ url,
+ wxControl::EscapeMnemonics(text));