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

radeditor strips doubleclick.net content

1 Answer 39 Views
BrowseEditor
This is a migrated thread and some comments may be shown as answers.
Juraj
Top achievements
Rank 1
Juraj asked on 04 Mar 2013, 07:06 AM
Hi,

I am copy-pasting doubleclick.net generated ad content to radeditor and it strips part of it's content. The content looks as follows:
<script type="text/javascript">
var ord = window.ord || Math.floor(Math.random() * 1e16);
document.write('<script type="text/javascript" src="http://ad.doubleclick.net/xxxyyyzzz/adtarget;area=default;section=default;pos=fullbanner2;sz=728x90;ord=' + ord + '?"><\/script>');
</script>

radeditor actually match the ending script element in document.write function (line 3) and strips the last script element. It of course leads to js error and ad not working when rendering the content.

Pls, help how should I escape it or how to solve this in general.

Thanks,
Juraj

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Mar 2013, 02:04 PM
Hi,

My suggestion is to disable the RemoveScript and ConvertCharactersToEntities content filters of RadEditor and test this content again.

All the best,
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
BrowseEditor
Asked by
Juraj
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or