New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

line feed symbols being added to content when submitted

QUESTION

**Why is the "\r\n" being added to the end of the text content of RadEditor when being submitted?

ANSWER**

The \r\n are added for readability. Due to them when the editor's content is displayed in Html mode or in the Database it will be readable.

If you do not want these line-feed and line breaks in the produced content you can use the Trim method of the Content server property:

RadEditor1.Content.Trim(); .  

Another approach is to replace the line-feed and new line with empty string using the Replace method

RadEditor1.Content.Replace("\r", "").Replace("\n", "")**;
In this article
Not finding the help you need? Improve this article