]> git.mxchange.org Git - friendica.git/commitdiff
Import the image attribut "title"
authorMichael <heluecht@pirati.ca>
Mon, 22 Jan 2024 07:47:38 +0000 (07:47 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 22 Jan 2024 07:47:38 +0000 (07:47 +0000)
src/Content/Text/HTML.php

index 5ad66e85ea2c941a6a857236d8594bc94c4616d5..fd4a4b1d248f292433b1d3c529ffdee7e3f8952c 100644 (file)
@@ -302,6 +302,7 @@ class HTML
                        self::tagToBBCode($doc, 'a', ['href' => '/(.+)/'], '[url=$1]', '[/url]');
 
                        self::tagToBBCode($doc, 'img', ['src' => '/(.+)/', 'alt' => '/(.+)/'], '[img=$1]$2', '[/img]', true);
+                       self::tagToBBCode($doc, 'img', ['src' => '/(.+)/', 'title' => '/(.+)/'], '[img=$1]$2', '[/img]', true);
                        self::tagToBBCode($doc, 'img', ['src' => '/(.+)/', 'width' => '/(\d+)/', 'height' => '/(\d+)/'], '[img=$2x$3]$1', '[/img]', true);
                        self::tagToBBCode($doc, 'img', ['src' => '/(.+)/'], '[img]$1', '[/img]', true);