I'm using WebHtmlEditor With WebSpellChecker. In that control I have encountered an issue with & sign. This happens randomly.
scenarios:
1.) Just enter & sign except other text. Save this in database and when it displayed it shows &. This does not happen if there are some text with & sign.
2.) Couldn't re-create other scenarios. But in the middle of paragraphs & sign get converts to & .
Hello Aruna ,
Thank you for posting in our forum.
Special characters like “&” need to be encoded before they get send to the server. Due to this if you check the text send over to the server when you enter “&” it will contain the encoded value:” &”. Before you save the data in your data source you can decode the string returned from the client so that you’ll get the clean value. For example:
string encodedString = this.WebHtmlEditor1.Text;
string decodedString = HttpUtility.HtmlDecode(encodedString);
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support