@@ -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", '<br>', $s);
|
||||
|
||||
$s = str_replace("\n", " \n", $s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user