diff options
author | Christian Weiske <cweiske@cweiske.de> | 2012-01-20 22:10:30 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2012-01-20 22:10:30 +0100 |
commit | 6ff4370a20e7da8d02239b387cc0db296d7bf466 (patch) | |
tree | 0166e5a7b78779675507086326efd67b4fef9eb3 /www/ajaxGetTitle.php | |
parent | d16ca9235157042604f23949f2fa6e479e882d7d (diff) | |
parent | d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9 (diff) | |
download | semanticscuttle-6ff4370a20e7da8d02239b387cc0db296d7bf466.tar.gz semanticscuttle-6ff4370a20e7da8d02239b387cc0db296d7bf466.tar.bz2 |
Merge branch '0.98'
Diffstat (limited to 'www/ajaxGetTitle.php')
-rw-r--r-- | www/ajaxGetTitle.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/ajaxGetTitle.php b/www/ajaxGetTitle.php index 8e5d92c..e1fbe30 100644 --- a/www/ajaxGetTitle.php +++ b/www/ajaxGetTitle.php @@ -50,7 +50,10 @@ function getTitle($url) { $title = @mb_convert_encoding($title, 'UTF-8', $encoding); } + $title = trim($title); + if (utf8_strlen($title) > 0) { + $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); return $title; } else { // No title, so return filename |