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


    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>');

    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.

  2. Rumen
    Rumen avatar
    13705 posts

    Posted 06 Mar 2013 Link to this post


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

    All the best,
    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.
Back to Top