Rank: Newbie Groups: Member
Joined: 1/15/2008 Posts: 8
|
Several of my menu items contain ampersands, for example "A&E". The menu is bound to an Xml provider, so the actual menu title text is "A&E". When rendered by eo:menu this menu item only displays "A".
After some experimenting I found that adding a trailing space to the title in the xml file fixes it -- "A&E "
Is this a bug, or is there another way to get around this issue.
Thank you.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will need to use double escaping. For example, "A&E". The reason is menu text is interpreted as HTML, not plain text. So if you were to set menu item text by code, you would use "A&E", but since the text is from sitemap, which is an XML file, so that adds an additional level of escaping.
Thanks
|
Rank: Newbie Groups: Member
Joined: 1/15/2008 Posts: 8
|
Understood. Worked great. Thanks
|