diff options
author | Friendika <info@friendika.com> | 2011-02-02 18:09:27 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-02 18:09:27 -0800 |
commit | 25c2640c17244aeb53020df83455a14ae245e831 (patch) | |
tree | e75c62dca9ff956d58901151ac79401506e3f968 /include/html2bbcode.php | |
parent | 1a18f4bcdee4084ef132b652188ae283cc187535 (diff) | |
download | volse-hubzilla-25c2640c17244aeb53020df83455a14ae245e831.tar.gz volse-hubzilla-25c2640c17244aeb53020df83455a14ae245e831.tar.bz2 volse-hubzilla-25c2640c17244aeb53020df83455a14ae245e831.zip |
be more forgiving about the order of link parameters in html->bb
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r-- | include/html2bbcode.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php index 65cbcec41..6af8df824 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -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]', |