]> git.mxchange.org Git - friendica.git/commitdiff
Images: Show the description as title
authorMichael <heluecht@pirati.ca>
Fri, 25 Oct 2019 23:23:38 +0000 (23:23 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 25 Oct 2019 23:23:38 +0000 (23:23 +0000)
src/Content/Text/BBCode.php

index 75f5d506e1b60339943db55943c7ae1afc71c96d..0dbac8b7710a4c10bd1148f2b611c241469b3731 100644 (file)
@@ -1552,7 +1552,7 @@ class BBCode extends BaseObject
                        function ($matches) use ($simple_html) {
                                $matches[1] = self::proxyUrl($matches[1], $simple_html);
                                $matches[2] = htmlspecialchars($matches[2], ENT_COMPAT);
-                               return '<img src="' . $matches[1] . '" alt="' . $matches[2] . '">';
+                               return '<img src="' . $matches[1] . '" alt="' . $matches[2] . '" title="' . $matches[2] . '">';
                        },
                        $text);