When I add or é to a text value of a listitem, it display the code of the HTML entity instead of the result (a space or é).
I can add ‘physical’ non-breaking spaces or special chars, but I would like to avoid that if possible. Sometimes the data stored in database is encoded, and I don’t want to always process data before displaying it.
Any solution ?
Thanks
Edit note : previous description noted it was about a dropdownlist simulating a treeview, but it was merely an example ; I can’t and don’t want to replace the dropdownlist by anything else.
ListItems are automatically HtmlEncoded.
You can HtmlDecode the list items before hand, so when they are HtmlEncoded you get the proper characters: