in IE, spaces are being replaced by %20

2 posts, 0 answers
  1. mkerchenski
    mkerchenski avatar
    8 posts
    Member since:
    Jun 2012

    Posted 29 Nov 2012 Link to this post

    We have our own version of scripting language
    We just recently install your updates(last week) and one of our clients reported this issue. I was able to reproduce it, on your demo page (

    if you put this in in HTML mode
    <a href="[cp:scripting key='column' name='address' /]" />[cp:scripting key='column' name='title' /]</a>

    then switch to Design and then back to HTML. that what you going to get.
    <a href="[cp:scripting%20key='column'%20name='address'%20/]">[cp:scripting key='column' name='title' /]</a>

    This also happens with JavaScripts included in an HREF attribute.
    <a href="javascript:alert('are spaces replaced');">Alert</a>

    <a href="javascript:alert('are%20spaces%20replaced');">Alert</a>

  2. Rumen
    Rumen avatar
    14271 posts

    Posted 03 Dec 2012 Link to this post


    You can fix the problem by disabling the ConvertToXhtml filter of RadEditor.

    Another approach is to replace the %20 with empty space using a custom content filter or on the server using String.Replace.

    Kind regards,
    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