]>
git.mxchange.org Git - friendica.git/blobdiff - include/html2bbcode.php
// Tags to Find
$htmltags = array(
+ '/\n/is',
'/\<b\>(.*?)\<\/b\>/is',
'/\<i\>(.*?)\<\/i\>/is',
'/\<u\>(.*?)\<\/u\>/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]',