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

HTML Tags Being Encoded

1 Answer 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 25 Jun 2013, 08:46 AM
Hi,

We are having problems with the latest Telerik RadEditor control (2013.2). When the HTML contains an attribute name with a colon, that tag is being encoded when switching from HTML view to Design and back again.

For example:

<html xmlns:v="urn:schemas-microsoft-com:vml">

Will get encoded to:

&lt;html xmlns:v="urn:schemas-microsoft-com:vml"&gt;

This happens with any HTML tag and it didn't used to happen in the last version we used (2012.2).

Is there any way to stop this happening?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 27 Jun 2013, 02:11 PM
Hello Stuart,

I have already answered your support ticket on the subject, for convenience I will paste my answer here as well:

he experienced behavior is caused by the fact the 'xmlns' attribute is not XHTML compliant. You can use the RadEditor to strip Word-formatting on paste. You might have a look at this blog post and this demo concerning the PasteFromWord functionality.

If you want to keep the content this way, a possible workaround is to disable the ConvertCharactersToEntities filter. You can test the described behavior with disabled filter in our demo and find more information for the content filters of RadEditor in this article.

I hope you will find this information helpful.

Regards,
Veselina Raykova
Telerik
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 the blog feed now.
Tags
Editor
Asked by
Stuart
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or