diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-04-13 05:59:29 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-04-13 05:59:29 -0700 |
commit | 46f4c707dc302979bf142c41b65546966287aa84 (patch) | |
tree | 8c7d50d67178bd8bce659cf3a73f989c33fea361 /engine/lib/output.php | |
parent | c4a5b13569f9e3d41eb03ebf8e9b031719680453 (diff) | |
parent | 5ccc0540fd28cc1620ffca10e3aed92319e78794 (diff) | |
download | elgg-46f4c707dc302979bf142c41b65546966287aa84.tar.gz elgg-46f4c707dc302979bf142c41b65546966287aa84.tar.bz2 |
Merge pull request #5310 from mrclay/4972
Fixes #4972: More robust friendly titles implementation
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r-- | engine/lib/output.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php index da8e1ab86..c5a04989b 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -284,11 +284,9 @@ function elgg_get_friendly_title($title) { return $result; } - // handle some special cases - $title = str_replace('&', 'and', $title); - // quotes and angle brackets stored in the database as html encoded - $title = htmlspecialchars_decode($title); - + // titles are often stored HTML encoded + $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); + $title = ElggTranslit::urlize($title); return $title; |