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

XML in a Rad Editor.

3 Answers 79 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rama
Top achievements
Rank 1
Rama asked on 16 Mar 2012, 11:27 AM
Hi...

I am using Rad Editor to show my sitemap to user,where they can edit.I cant use normal text box as of security reasons.

My problem is ,The output the rad editor is all HTML I need Plain text.Is that possible?I mean I need to  to avoid / (escape character before a "  i.e, /" also \n  ) from XML sitemap.

<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<sitemap xmlns=\"http://schemas.microsoft.com/AspNet/SiteMap-File-1.0\">\n<sitemapnode>\n<sitemapnode url=\"~/Default.aspx\" title=\"HomePage\" description=\"Home Page\">\n<sitemapnode url=\"~/Postproperty.aspx\" title=\"Post Property\" description=\"Post Property\"></sitemapnode>\n<sitemapnode url=\"~/PostRequirements.aspx\" title=\"Post Requirement\" description=\"Post Requirement\"></sitemapnode>\n<sitemapnode url=\"~/PropertySearc.aspx\" title=\"Property Search\" description=\"Property Search\"></sitemapnode>\n<sitemapnode url=\"~/NewVentures.aspx\" title=\"New Projects\" description=\"New Projects\"></sitemapnode>\n<sitemapnode url=\"~/NRIservices.aspx\" title=\"Services\" description=\"Service Offers\"></sitemapnode>\n<sitemapnode url=\"~/Contactus.aspx\" title=\"Contact Us\" description=\"Contact Us\"></sitemapnode>\n</sitemapnode>\n</sitemapnode></sitemap>"

This is my sample XML.I just highlighted piece of code.

This is very urgent from me.If possible ,Please let me know ASAP.

Thank you !

Rama.M

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Mar 2012, 04:05 PM
Hi,

Have you tried to obtain the content as plain text via the RadEditor1.Text server property?

Kind regards,
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.
0
Rama
Top achievements
Rank 1
answered on 19 Mar 2012, 11:11 AM
Hi Rumen,

yep RadEditor has a server property named Editor.Text but it is not helping me get out of it ,because it showing error like "please use content property..". Any other solution Please..

Thanks and Regards
Rama.M
0
Rumen
Telerik team
answered on 21 Mar 2012, 04:43 PM
Hi,

You should use the Content property to load content in RadEditor.
You need to set the Text property to obtain (not to set) the editor's content as plain text, which was your requirement ("The output the rad editor is all HTML I need Plain text").

Also note that RadEditor is an XHTML editor, but not XML editor and support for XML tags is not offered out-of-the box.

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
Rama
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rama
Top achievements
Rank 1
Share this question
or