Skip to content
Snippets Groups Projects
Commit 82cf495a authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #65273 : ensure utf-8 encoding of decoded entities

parent e25b373d
Branches
Tags
3 merge requests!2409Master,!2399Dev#65273 s91 contractuel cavy export des articles agenda en json,!2392Dev#65273 s91 contractuel cavy export des articles agenda en json
Pipeline #2823 failed with stage
in 21 minutes and 34 seconds
......@@ -54,7 +54,10 @@ class Class_ICal_Event extends \Eluceo\iCal\Component\Event {
if (($latitude = $article->getLatitude()) && ($longitude = $article->getLongitude()))
$event->setGeoLocation(new \Eluceo\iCal\Property\Event\Geo($latitude, $longitude));
$event->setDescription(html_entity_decode(strip_tags($article->getFullContent())));
$text_description = html_entity_decode(strip_tags($article->getFullContent()),
ENT_COMPAT|ENT_HTML401,
'UTF-8');
$event->setDescription($text_description);
$event->setDescriptionHTML($article->getFullContent());
if ($image = $article->getFirstImageAbsoluteURL())
$event->setImage($image);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment