summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print_facts.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions/functions_print_facts.php')
-rw-r--r--includes/functions/functions_print_facts.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php
index 8a5ecd1cf3..fe0e597c23 100644
--- a/includes/functions/functions_print_facts.php
+++ b/includes/functions/functions_print_facts.php
@@ -219,7 +219,7 @@ function print_fact(WT_Event $fact, WT_GedcomRecord $record) {
case 'PHON': // Not valid as a level 1 tag...
case 'FAX': // Not valid as a level 1 tag...
// These tags always(?) contain LTR data. Make sure they render correctly on RTL pages.
- echo '<div class="field"><span dir="ltr">', htmlspecialchars($fact->getDetail()), '</span></div>';
+ echo '<div class="field" dir="ltr">', htmlspecialchars($fact->getDetail()), '</div>';
break;
case 'EMAIL':
case 'EMAI':
@@ -254,6 +254,9 @@ function print_fact(WT_Event $fact, WT_GedcomRecord $record) {
}
echo '</div>';
break;
+ case 'PUBL': // Publication details might contain URLs.
+ echo '<div class="field">', expand_urls(htmlspecialchars($fact->getDetail())), '</div>';
+ break;
case 'REPO':
if (preg_match('/^@('.WT_REGEX_XREF.')@$/', $fact->getDetail(), $match)) {
print_repository_record($match[1]);