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

Keep Formatting but remove HTML tags

1 Answer 191 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jane
Top achievements
Rank 1
Jane asked on 28 Mar 2013, 02:23 PM
I would like to keep the formatting but remove the tags from the content saved to the database.  Is there a way to do this.... As an example...

I<br />
don't<br />
want<br />
to<br />
see<br />
the<br />
a<br />


The above is displayed on another web page.  Is there some setting that I can use to remove the </br> tags, or do I manually have the strip them out...  Any suggestions would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Mar 2013, 03:06 PM
Hello,

RadEditor is a XHTML editor and the content returned by its Content property is a string, which contains HTML/XHTML markup. If you would like you can replace using String.Replace the <br> tags with linefeed /r/n symbols.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Jane
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or