]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7774 from annando/img-title
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 25 Oct 2019 23:29:55 +0000 (19:29 -0400)
committerGitHub <noreply@github.com>
Fri, 25 Oct 2019 23:29:55 +0000 (19:29 -0400)
Images: Show the description as title

src/Content/Text/BBCode.php

index 11e7840b0a283e7237808ed0283f79fb4b7d7b4e..8a029fe5344441dd4b6646ef1c81fb9993f10777 100644 (file)
@@ -1553,7 +1553,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);