summaryrefslogtreecommitdiff
path: root/app/Fact.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Fact.php')
-rw-r--r--app/Fact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Fact.php b/app/Fact.php
index 5839520201..68f406323a 100644
--- a/app/Fact.php
+++ b/app/Fact.php
@@ -266,7 +266,7 @@ class Fact {
case 'FACT':
if ($this->getAttribute('TYPE') !== '') {
// Custom FACT/EVEN - with a TYPE
- return I18N::translate(Filter::escapeHtml($this->getAttribute('TYPE')));
+ return I18N::translate(Html::escape($this->getAttribute('TYPE')));
}
// no break - drop into next case
default:
@@ -383,7 +383,7 @@ class Fact {
// Fact value
$value = $this->getValue();
if ($value !== '' && $value !== 'Y') {
- $attributes[] = '<span dir="auto">' . Filter::escapeHtml($value) . '</span>';
+ $attributes[] = '<span dir="auto">' . Html::escape($value) . '</span>';
}
// Fact date
$date = $this->getDate();