X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbb2diaspora.php;h=03eff5a6b73a5bd2c398d11fe8c4d448110a1497;hb=2952e2b3e47d0d16e89c6ff81353a9059bfe474c;hp=e5099992366558b722c8c27fb635713bc24a4f6c;hpb=18d23ca443a3a2df77b78ad28cc151199d70a8d8;p=friendica.git diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index e509999236..03eff5a6b7 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -59,15 +59,6 @@ function diaspora2bb($s) { $s = str_replace('#', '#', $s); - $search = array(" \n", "\n "); - $replace = array("\n", "\n"); - do { - $oldtext = $s; - $s = str_replace($search, $replace, $s); - } while ($oldtext != $s); - - $s = str_replace("\n\n", '
', $s); - $s = html2bbcode($s); // protect the recycle symbol from turning into a tag, but without unescaping angles and naked ampersands