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

Editor unescaping my code

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kristian
Top achievements
Rank 1
Kristian asked on 21 Mar 2011, 11:48 PM
Hello. 
I have noticed that when I pass:
<pre>
&#60;a&#62;test&#60;/a&#62;
</pre>

or

<pre>
&lt;a&&gt;test&lt;/a&gt;
</pre>

into the editor it automatically converts it to the following when I look in the HTML view:

<pre>
<a>test</a>
</pre>

Is there a way that I can configure the editor to not automatically decode my < and > symbols?

I am currently using the 2010.2.929.35 release.

thanks.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Mar 2011, 10:54 AM
Hi Kristian,

This is a browser behavior which you can reproduce with the attached HTML page having an editable IFRAME in it. It is the browser's Rich Text Editing engine that RadEditor uses to render and produce content, which is rendering the &lt; and &gt; entities in Design mode and this cannot be prevented.


Best regards,
Rumen
the Telerik team
Tags
Editor
Asked by
Kristian
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or