diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-02-06 16:23:39 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-02-06 16:23:39 +0100 |
commit | 983f063d33efbf2c6fb43c3aa12562b464b2cb9c (patch) | |
tree | ca8c4060486ca7b1ef28eaf3fc441c5ea2b4f343 /include/html2bbcode.php | |
parent | eb6a143fffba5a796945a425b289e95f7bd28d00 (diff) | |
download | volse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.tar.gz volse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.tar.bz2 volse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.zip |
Fix image with alt text for html/md to bbcode
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r-- | include/html2bbcode.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php index aca3ff4f8..5cb153a77 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -219,6 +219,7 @@ function html2bbcode($message) node2bbcode($doc, 'a', array('href'=>'/(.+)/'), '[url=$1]', '[/url]'); node2bbcode($doc, 'img', array('src'=>'/(.+)/', 'width'=>'/(\d+)/', 'height'=>'/(\d+)/'), '[img=$2x$3]$1', '[/img]'); + node2bbcode($doc, 'img', array('src'=>'/(.+)/', 'alt'=>'/(.+)/'), '[img=$1]$2', '[/img]'); node2bbcode($doc, 'img', array('src'=>'/(.+)/'), '[img]$1', '[/img]'); |