Welcome Guest Search | Active Topics | Sign In | Register

eo:Menu items containing ampersand Options
AndyKowal
Posted: Wednesday, January 16, 2008 11:42:14 AM
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.
eo_support
Posted: Wednesday, January 16, 2008 12:39:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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
AndyKowal
Posted: Wednesday, January 16, 2008 1:09:43 PM
Rank: Newbie
Groups: Member

Joined: 1/15/2008
Posts: 8
Understood. Worked great.
Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.