This is a migrated thread and some comments may be shown as answers.

URLs with &

3 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 05 Dec 2016, 11:28 PM

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

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 08 Dec 2016, 02:27 PM
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.
0
Dan Ehrmann
Top achievements
Rank 1
answered on 12 Dec 2016, 05:29 PM

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?

 

0
Vessy
Telerik team
answered on 15 Dec 2016, 11:45 AM
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.
Tags
Editor
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Dan Ehrmann
Top achievements
Rank 1
Share this question
or