parent
166df0180b
commit
60b9203dd5
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ function diaspora2bb($s) {
|
||||||
|
|
||||||
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
|
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
|
||||||
|
|
||||||
// Remove CR to avoid problems with following code
|
// Handles single newlines
|
||||||
$s = str_replace("\r", '', $s);
|
$s = str_replace("\r", '<br>', $s);
|
||||||
|
|
||||||
$s = str_replace("\n", " \n", $s);
|
$s = str_replace("\n", " \n", $s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue