Apostrophe ‘ breaks the shortcode
-
Hello. First of all thank you for this great plugin! Works like a charm, it’s light, effective and stylish.
I’m implementing a simple button using the shortcode. I’ve noticed that using an apostrophe ( ‘ ) inside a location attribute of a sub-event breaks the shortcode and prevent the button to render. Is this a known issue? Is there already a workaround? I’ve tried using the HTML code (') but it’s not “translated” in the location string when added to the chosen calendar.
Example:
[add-to-calendar-button name="MY EVENT" organizer="Marco|[email protected]" options="'Apple','Google','iCal','Microsoft365','MicrosoftTeams','Outlook.com','Yahoo'" buttonStyle="round" language="it" timeZone="Europe/Rome" dates='
{
"name":"1/2 - MY EVENT",
"description":"First Day",
"startDate":"2025-05-09",
"location":"Via dell'Acquedotto Romano 155, Roma, Italia"
},
{
"name":"2/2 - MY EVENT",
"description":"Second Day",
"startDate":"2025-05-10",
"location":"Via dell'Impero Romano 120, Roma, Italia"
}
']As you can see in both locations there is an apostrophe in the address. This prevents the button to show up.
If I change the addresses in something like
"location":"Via Acquedotto Romano 155, Roma, Italia"and
"location":"Via Impero Romano 120, Roma, Italia"everything works fine. Unfortunately, apostrophe is a very important punctuation mark in Italian (and other languages).
Thank you.
The topic ‘Apostrophe ‘ breaks the shortcode’ is closed to new replies.