summaryrefslogtreecommitdiff
path: root/app/Individual.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Individual.php')
-rw-r--r--app/Individual.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Individual.php b/app/Individual.php
index 2917c71984..b4305a772b 100644
--- a/app/Individual.php
+++ b/app/Individual.php
@@ -1225,7 +1225,7 @@ class Individual extends GedcomRecord {
$full = str_replace('@N.N.', I18N::translateContext('Unknown surname', '…'), $full);
$full = str_replace('@P.N.', I18N::translateContext('Unknown given name', '…'), $full);
// Format for display
- $full = '<span class="NAME" dir="auto" translate="no">' . preg_replace('/\/([^\/]*)\//', '<span class="SURN">$1</span>', Filter::escapeHtml($full)) . '</span>';
+ $full = '<span class="NAME" dir="auto" translate="no">' . preg_replace('/\/([^\/]*)\//', '<span class="SURN">$1</span>', Html::escape($full)) . '</span>';
// Localise quotation marks around the nickname
$full = preg_replace_callback('/&quot;([^&]*)&quot;/', function ($matches) { return I18N::translate('ā€œ%sā€', $matches[1]); }, $full);