diff --git a/lib/bookmarks.php b/lib/bookmarks.php
index be868334..142808fe 100644
--- a/lib/bookmarks.php
+++ b/lib/bookmarks.php
@@ -384,14 +384,14 @@ class OC_Bookmarks_Bookmarks{
$url = 'http://' . $url;
}
$metadata['url'] = $url;
-
- if (!function_exists('curl_init')) {
- return $metadata;
- }
$page = OC_Util::getUrlContent($url);
if($page) {
if(preg_match( "/
(.*)<\/title>/sUi", $page, $match ) !== false)
- $metadata['title'] = htmlspecialchars_decode($match[1]);
+ $metadata['title'] = html_entity_decode($match[1], ENT_NOQUOTES , 'UTF-8');
+ //Not the best solution but....
+ $metadata['title'] = str_replace('™', chr(153), $metadata['title']);
+ $metadata['title'] = str_replace('‐', '‐', $metadata['title']);
+ $metadata['title'] = str_replace('–', '–', $metadata['title']);
}
return $metadata;
}