URLs with &

4 posts, 0 answers
  1. Dan Ehrmann
    Dan Ehrmann avatar
    166 posts
    Member since:
    Jul 2004

    Posted 05 Dec 2016 Link to this post

    When I insert a link into the editor, the & characters in the query string are getting converted to &

    Mostly, I don't mind - the links still work on web pages. However, in some email clients (looking at you, Outlook...) the & entities break the link

    I am not using the ConvertCharactersToEntities filter

    Is there a way I can prevent this from happening?

    I tried this on the content filter demo - I turned off ConvertCharactersToEntities and characters still got converted

  2. Vessy
    Admin
    Vessy avatar
    2214 posts

    Posted 08 Dec 2016 Link to this post

    Hi Dan,

    You can try implementing a custom content filter like suggested in this forum thread:
    http://www.telerik.com/forums/radeditor-becomes-amp#NtPnidQiOkqtdQTocSL9Bw

    Regards,
    Vessy
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
  3. Dan Ehrmann
    Dan Ehrmann avatar
    166 posts
    Member since:
    Jul 2004

    Posted 12 Dec 2016 in reply to Vessy Link to this post

    I will try that

    But I am confused - if the ConvertCharactersToEntities filter is not being used, why are the & characters getting converted? It looks like only <, >, and & get converted. Is this a browser behavior?

     

  4. Vessy
    Admin
    Vessy avatar
    2214 posts

    Posted 15 Dec 2016 Link to this post

    Hi Dan,

    Yes, this is a browser behavior, which can be reproduced in a standard editable iframe. You can test it in the following link, the generated html is shown after clicking subsequently the "Set content in the IFRAME" and "Show FRAME HTML" buttons:
    http://dojo.telerik.com/@veselinar/IzUKa

    Regards,
    Vessy
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top