]> git.mxchange.org Git - friendica.git/blobdiff - include/html2bbcode.php
more graceful handling of some statusnet followups
[friendica.git] / include / html2bbcode.php
index 65cbcec41f66835acca21810cfe64200d43b87dd..6af8df824e76bbf35552e881b81aaa2c783364c5 100644 (file)
@@ -23,7 +23,7 @@ function html2bbcode($s) {
                '/\<div(.*?)\>(.*?)\<\/div\>/is',
                '/\<br(.*?)\>/is',
                '/\<strong\>(.*?)\<\/strong\>/is',
-               '/\<a href=\"(.*?)\"(.*?)\>(.*?)\<\/a\>/is',
+               '/\<a (.*?)href=\"(.*?)\"(.*?)\>(.*?)\<\/a\>/is',
                '/\<code\>(.*?)\<\/code\>/is',
                '/\<span style=\"color:(.*?)\"\>(.*?)\<\/span\>/is',
                '/\<blockquote\>(.*?)\<\/blockquote\>/is',
@@ -48,7 +48,7 @@ function html2bbcode($s) {
                '$2',
                "\n",
                '[b]$1[/b]',
-               '[url=$1]$3[/url]',
+               '[url=$2]$4[/url]',
                '[code]$1[/code]',
                '[color="$1"]$2[/color]',
                '[quote]$1[/quote]',