From: Michael Date: Mon, 22 Jan 2024 07:47:38 +0000 (+0000) Subject: Import the image attribut "title" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e88b703d85e36cefd4eb215a061c9dc3c7a0b0e;p=friendica.git Import the image attribut "title" --- diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 5ad66e85ea..fd4a4b1d24 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -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);