Commit d9433fb4 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Event html

parent 485073b3
......@@ -341,8 +341,10 @@ class Event
$vevent->setProperty('SUMMARY', $event['title'] );
$html = $th->Htmlise($event['description'],false) . "<p><a href='$link'>$link</a></p>";
$vevent->setProperty( "X-ALT-DESC", $html);
$th->Html2Text($event['description']);
$vevent->setProperty('DESCRIPTION', $event['description'] );
if($event['is_html']) {
$th->Html2Text($event['description']);
}
$vevent->setProperty('DESCRIPTION', $event['description'] . "\n\n$link");
$vevent->setProperty( "URL", $link);
return $calendar->returnCalendar();;
}
......@@ -398,8 +400,10 @@ class Event
$vevent->setProperty('SUMMARY', $event['title'] );
$html = $th->Htmlise($event['description'],false) . "<p><a href='$link'>$link</a></p>";
$vevent->setProperty( "X-ALT-DESC", $html);
$th->Html2Text($event['description']);
$vevent->setProperty('DESCRIPTION', $event['description'] );
if($event['is_html']) {
$th->Html2Text($event['description']);
}
$vevent->setProperty('DESCRIPTION', $event['description'] . "\n\n$link");
$vevent->setProperty( "URL", $link);
}
return $calendar->returnCalendar();;
......
Markdown is supported
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