Merge pull request #7774 from annando/img-title
Images: Show the description as title
This commit is contained in:
commit
b632114b12
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue