summaryrefslogtreecommitdiff
path: root/app/Controller/TimelineController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/TimelineController.php')
-rw-r--r--app/Controller/TimelineController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/TimelineController.php b/app/Controller/TimelineController.php
index 11f5134a26..8251965429 100644
--- a/app/Controller/TimelineController.php
+++ b/app/Controller/TimelineController.php
@@ -22,6 +22,7 @@ use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Filter;
use Fisharebest\Webtrees\Functions\FunctionsDate;
use Fisharebest\Webtrees\Functions\FunctionsPrint;
+use Fisharebest\Webtrees\Html;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Theme;
@@ -232,7 +233,7 @@ class TimelineController extends PageController {
echo '<span class="age"> ', I18N::translate('Age'), ' ', $ageh, '</span>';
}
}
- echo ' ' . Filter::escapeHtml($desc);
+ echo ' ' . Html::escape($desc);
if (!$event->getPlace()->isEmpty()) {
echo ' — ' . $event->getPlace()->getShortName();
}