radeditor strips doubleclick.net content

2 posts, 0 answers
  1. Juraj
    Juraj avatar
    5 posts
    Member since:
    Nov 2012

    Posted 04 Mar 2013 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 06 Mar 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top