From: Michael Vogel Date: Fri, 4 Apr 2014 08:54:43 +0000 (+0200) Subject: When converting from html to bbcode, now mail links are converted into the [mail... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b471e097ab10c22c69ab486f4d3208629248f7b;p=friendica.git When converting from html to bbcode, now mail links are converted into the [mail] bbcode --- diff --git a/include/html2bbcode.php b/include/html2bbcode.php index b38da6b0a4..d9255a7ffc 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -212,6 +212,7 @@ function html2bbcode($message) node2bbcode($doc, 'h5', array(), "\n\n[size=small][b]", "[/b][/size]\n"); node2bbcode($doc, 'h6', array(), "\n\n[size=x-small][b]", "[/b][/size]\n"); + node2bbcode($doc, 'a', array('href'=>'/mailto:(.+)/'), '[mail=$1]', '[/mail]'); node2bbcode($doc, 'a', array('href'=>'/(.+)/'), '[url=$1]', '[/url]'); node2bbcode($doc, 'img', array('src'=>'/(.+)/', 'width'=>'/(\d+)/', 'height'=>'/(\d+)/'), '[img=$2x$3]$1', '[/img]');