parent
166df0180b
commit
60b9203dd5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user