[FEATURE] Add option for bold text in mails

This commit is contained in:
Philipp Dieter 2021-12-19 17:33:19 +01:00
parent a9a3ad38d4
commit 217aa02fc5

View File

@ -214,6 +214,17 @@ class MailUtility
},
$htmlRow['data']
);
$htmlRow['data'] = preg_replace_callback(
'/\*.*\*/mU',
function($matches) {
foreach ($matches as $match) {
return '<b>'
. substr($match, 1, -1)
. '</b>';
}
},
$htmlRow['data']
);
$textRow = $row;
$textRow['data'] = preg_replace_callback(
'/\[.*\]/mU',