RadEditor problem when hyperlink contains >

2 posts, 0 answers
  1. margan
    margan avatar
    17 posts
    Member since:
    Oct 2010

    Posted 15 Sep Link to this post


    First the problem occurs in IE not in Firefox.

    I have this string in html view: <a href="http://TEST?TestId=<%TEST_GUID%>">here</a>

    In Firefox it looks like this:

    HTML View: <a href="http://TEST?TestId=<%TEST_GUID%>">here</a>
    Switch to design: here
    Switch to HTML: <a href="http://TEST?TestId=<%TEST_GUID%>">here</a>

    In IE 11

    HTML View: <a href="http://TEST?TestId=<%TEST_GUID%>">here</a>
    Switch to design: ">here
    Switch to HTML: <a href="http://TEST?TestId=<%TEST_GUID% originalAttribute=" href"="" test?testid='<%TEST_GUID%"'>"&gt;here</a>

    As you can see editing this in IE alway crashes the hyperlink.

    Is there any way to fix this?

  2. Marin Bratanov
    Marin Bratanov avatar
    3602 posts

    Posted 19 Sep Link to this post

    Hi margan,

    Such a value for the href attribute is invalid HTML and cannot be expected to work. Browsers attempt to fix it in different ways (for example, Firefox will encode the < and > symbols) and RadEditor also expects valid HTML strings, otherwise the commands and parsing logic may break.

    What I can suggest is that you look into other ways to delimit the querystring values that are valid HTML. For example, you can replace the < and > symbols with an allowed symbol.


    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top