]> git.mxchange.org Git - friendica.git/blobdiff - include/plaintext.php
Merge remote-tracking branch 'upstream/develop' into 1605-bugfix-notificatoon
[friendica.git] / include / plaintext.php
index 30ea5d9eeda719f177052dac89d535b133c3be2b..92ba8a27564bc9f0b182f6f96a92239528b3314f 100644 (file)
@@ -116,6 +116,8 @@ function get_attachment_data($body) {
        if ($matches[1] != "")
                $url = $matches[1];
 
+       $url = html_entity_decode($url, ENT_QUOTES, 'UTF-8');
+
        if ($url != "")
                $data["url"] = $url;
 
@@ -128,10 +130,9 @@ function get_attachment_data($body) {
        if ($matches[1] != "")
                $title = $matches[1];
 
-       //$title = htmlentities($title, ENT_QUOTES, 'UTF-8', false);
        $title = bbcode(html_entity_decode($title, ENT_QUOTES, 'UTF-8'), false, false, true);
+       $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
        $title = str_replace(array("[", "]"), array("[", "]"), $title);
-
        if ($title != "")
                $data["title"] = $title;