Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCal file generation might need review after Core PR #30

Open
jensschuppe opened this issue Mar 28, 2023 · 0 comments
Open

iCal file generation might need review after Core PR #30

jensschuppe opened this issue Mar 28, 2023 · 0 comments

Comments

@jensschuppe
Copy link
Contributor

See civicrm/civicrm-core#25723.

Custom Event Communication does this for making sure that HTML entities are being decoded in the ics file:

$event_data = \CRM_Event_BAO_Event::getCompleteInfo('19800101', null, $event_id, null, false);
foreach (['title', 'description', 'event_type', 'location', 'contact_email'] as $field) {
if (isset($event_data[0][$field])) {
$event_data[0][$field] = html_entity_decode($event_data[0][$field], ENT_QUOTES | ENT_HTML401, 'UTF-8');
}
}

The Core PR is to do this for the description field, so we might need to adapt our code when it gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant