// Tags to Find
$htmltags = array(
+ '/\n/is',
'/\<b\>(.*?)\<\/b\>/is',
'/\<i\>(.*?)\<\/i\>/is',
'/\<u\>(.*?)\<\/u\>/is',
'/\<strong\>(.*?)\<\/strong\>/is',
'/\<a href=\"(.*?)\"(.*?)\>(.*?)\<\/a\>/is',
'/\<code\>(.*?)\<\/code\>/is',
- '/\<font color=(.*?)\>(.*?)\<\/font\>/is',
- '/\<font color=\"(.*?)\"\>(.*?)\<\/font\>/is',
+ '/\<span style=\"color:(.*?)\"\>(.*?)\<\/span\>/is',
'/\<blockquote\>(.*?)\<\/blockquote\>/is',
);
// Replace with
$bbtags = array(
+ '',
'[b]$1[/b]',
'[i]$1[/i]',
'[u]$1[/u]',
'[*]$1',
'[img]$2[/img]',
'$2',
- '\n',
+ "\n",
'[b]$1[/b]',
'[url=$1]$3[/url]',
'[code]$1[/code]',
'[color="$1"]$2[/color]',
- '[color="$1"]$2[/color]',
'[quote]$1[/quote]',
);