aboutsummaryrefslogtreecommitdiff
path: root/www/ajaxGetTitle.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/ajaxGetTitle.php')
-rw-r--r--www/ajaxGetTitle.php3
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