diff options
Diffstat (limited to 'app/Individual.php')
| -rw-r--r-- | app/Individual.php | 2 |
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('/"([^&]*)"/', function ($matches) { return I18N::translate('ā%sā', $matches[1]); }, $full); |
