By GreezeLee on Wednesday, 18 October 2023
Replies 7
Likes 0
Views 446
Votes 0
If the description of an event contains a link with an ampersand, the iCal export fails.
For example the link:
https://www.jevents.net/test?xx=5&zz=2

Leads to this warning in the export file, that makes it unusable:
Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : EntityRef: expecting ';' in .../components/com_jevents/libraries/helper.php on line 4274
How was your event created the & should have been converted to a & by your editor
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The problem is that it's part of the HTML. It's in the link href attribute. So the editor doesn't convert it:

<a href="https://www.jevents.net/test?xx=5&zz=2">Open the flyer of the event</a>


We use this functionality to add links to download the event flyer. But unfortunately this breaks the subscriptions through the ical feeds.
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
How was your event created the & should have been converted to a & by your editor

Which editor are you using in Joomla - if you added

<a href="https://www.jevents.net/test?xx=5&zz=2">Open the flyer of the event</a>

most would convert it to this during saving

<a href="https://www.jevents.net/test?xx=5&zz=2">Open the flyer of the event</a>
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The Event was created by the JEvent editor. The description is edited with the JCE Editor.
But I don't understand your point. It's exact the same html statement in both of you code fragments, there is no difference.
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry - the forum software has made the correction for me.

The problem is that your URL contains a naked & and not a & a m p ; (spaces added to stop the forum from auto-correcting this).

Which version of JCE are you using?
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
It's the JCE editor 2.9.32.
That a content editor html encodes the URL in a link sounds strange to me. Usually only the display text is replaced, not the URL. If I HTML-encode the & in the URL in the HTML source, it works. But the opened URL still contains the encoded characters. It's interpreted correctly by the browser I used to test it, but it seems wrong to me.
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post