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

\r\n being added to Content when submitted

1 Answer 93 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 13 Aug 2008, 10:39 PM
Why is the "\r\n" being added to then end of the text when being submitted?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Aug 2008, 07:03 AM
Hi Victor,

The \r\n are added for readability . Thus when the content is displayed in Html mode of RadEditor or in the Database table it will be readable.

I would suggest to use the Trim method of the Content property:

RadEditor1.Content.Trim();

or just replace the line-feed and new line with empty string using the Replace method

RadEditor1.Content.Replace("\n", "");


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Victor
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or