summaryrefslogtreecommitdiff
path: root/app/GedcomRecord.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/GedcomRecord.php')
-rw-r--r--app/GedcomRecord.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index 939c1b2f9a..ba4218cb22 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -534,7 +534,7 @@ class GedcomRecord {
$this->_getAllNames[] = [
'type' => $type,
'sort' => preg_replace_callback('/([0-9]+)/', function ($matches) { return str_pad($matches[0], 10, '0', STR_PAD_LEFT); }, $value),
- 'full' => '<span dir="auto">' . Filter::escapeHtml($value) . '</span>', // This is used for display
+ 'full' => '<span dir="auto">' . Html::escape($value) . '</span>', // This is used for display
'fullNN' => $value, // This goes into the database
];
}
@@ -610,7 +610,7 @@ class GedcomRecord {
* @return string
*/
public function getFallBackName() {
- return Filter::escapeHtml($this->getXref());
+ return Html::escape($this->getXref());
}
/**