1
1
Fork 0

When converting from html to bbcode, now mail links are converted into the [mail] bbcode

This commit is contained in:
Michael Vogel 2014-04-04 10:54:43 +02:00
parent 5d4719f009
commit 7b471e097a

View file

@ -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]');