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

Saving as html

1 Answer 23 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jed Fletcher
Top achievements
Rank 1
Jed Fletcher asked on 06 May 2010, 01:28 PM
Hello

I have a RadEditor in a databound detailsview.
Now when the detailsview inserts i want to insert the text from the RadEditor as html.
Is there a way to do this

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 May 2010, 10:53 AM
Hi Jed,

I am not quite sure that I understand your scenario but if you want to render HTML tags as <strong>text</strong> then just replace using String.Replace the < and > signs with &lt; and &gt; entities and these symbols will be rendered when displayed on the page.

If you just want to obtain the RadEditor's content as HTML then use the Content property of the control.
You can use the code of the following demo example as a base to implement your scenario: Datagrid Edit Template.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Jed Fletcher
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or