This is a migrated thread and some comments may be shown as answers.

Unescaped Ampersands In Menu Text

2 Answers 69 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Shaun Peet
Top achievements
Rank 2
Shaun Peet asked on 17 Apr 2008, 04:42 AM
I've got a menu bound from a database and some of the menu items contain ampersands (&) in the text of the menu.  This creates validation errors:

http://validator.w3.org/check?uri=http%3A%2F%2Fhuronperthlakers.ca&charset=%28detect+automatically%29&doctype=Inline&group=0

I've tried to do a Replace("&","&") in the ItemDataBound server event but that doesn't seem to have any effect.  Any ideas?

2 Answers, 1 is accepted

Sort by
0
Accepted
Erjan Gavalji
Telerik team
answered on 18 Apr 2008, 08:49 AM
Hi Shaun,

I just played with ampersand symbols in the menu text, but after I ran a Replace I got the page validated correctly. Please find attached the sample page I used. Am I missing something?

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shaun Peet
Top achievements
Rank 2
answered on 18 Apr 2008, 02:09 PM
I thought I had already tried that but apparently I didn't do it right; it's working now as it should.  Thanks and my apologies for the inconvenience.
Tags
Menu
Asked by
Shaun Peet
Top achievements
Rank 2
Answers by
Erjan Gavalji
Telerik team
Shaun Peet
Top achievements
Rank 2
Share this question
or