From: Hypolite Petovan Date: Tue, 6 Dec 2016 03:46:51 +0000 (-0500) Subject: Add
for each carriage return X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=60b9203dd54cdc4c323acce224a4ef93b4884398;p=friendica.git Add
for each carriage return Fixes #2993 --- diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index cd54242164..d6bff9ab5b 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -17,8 +17,8 @@ function diaspora2bb($s) { $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8'); - // Remove CR to avoid problems with following code - $s = str_replace("\r", '', $s); + // Handles single newlines + $s = str_replace("\r", '
', $s); $s = str_replace("\n", " \n", $s);