diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-06-24 15:40:35 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-06-24 15:40:35 +0000 |
| commit | cfa551df783c9417108e6183deba0728e06bc881 (patch) | |
| tree | 10fea83e70f4604662beb301f98c921fa86edcb8 /includes/functions/functions_print.php | |
| parent | de46d9c6a2f834b99d85000f3ea2c6148551bba9 (diff) | |
| download | webtrees-cfa551df783c9417108e6183deba0728e06bc881.tar.gz webtrees-cfa551df783c9417108e6183deba0728e06bc881.tar.bz2 webtrees-cfa551df783c9417108e6183deba0728e06bc881.zip | |
#597929 remove HTML markup from page title
Diffstat (limited to 'includes/functions/functions_print.php')
| -rw-r--r-- | includes/functions/functions_print.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index df46a120fe..3f549ef67d 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -422,6 +422,11 @@ function print_header($title, $head="", $use_alternate_styles=true) { $META_DESCRIPTION=get_gedcom_setting(WT_GED_ID, 'META_DESCRIPTION'); $META_ROBOTS=get_gedcom_setting(WT_GED_ID, 'META_ROBOTS'); $META_TITLE=get_gedcom_setting(WT_GED_ID, 'META_TITLE'); + + // The title often includes the names of records, which may have markup + // that cannot be used in the page title. + $title=html_entity_decode(strip_tags($title), ENT_QUOTES, 'UTF-8'); + if ($META_TITLE) { $title.=' - '.$META_TITLE; } |
