HTML Tags Being Encoded

2 posts, 0 answers
  1. Stuart
    Stuart avatar
    6 posts
    Member since:
    May 2012

    Posted 25 Jun 2013 Link to this post


    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?

  2. Vessy
    Vessy avatar
    2212 posts

    Posted 27 Jun 2013 Link to this post

    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.

    Veselina Raykova
    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.
Back to Top