]> git.mxchange.org Git - friendica.git/commitdiff
Diaspora: The HTML paragraph element was treated wrong when importing items from...
authorMichael Vogel <icarus@dabo.de>
Fri, 4 Apr 2014 08:45:40 +0000 (10:45 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 4 Apr 2014 08:45:40 +0000 (10:45 +0200)
include/bb2diaspora.php

index 59d0e88226f7c5e435f65b0ce208b6cdfed4fb45..5b990bf0dfd40ed61fe71835d7b2ded5c3844957 100644 (file)
@@ -27,7 +27,9 @@ function diaspora2bb($s) {
        $s = str_replace("\r","",$s);
 
        // <br/> is invalid. Replace it with the valid expression
-       $s = str_replace("<br/>","<br />",$s);
+       logger("diaspora2bb: 1: ".$s);
+       $s = str_replace(array("<br/>", "</p>", "<p>"),array("<br />", "<br />", "<br />"),$s);
+       logger("diaspora2bb: 2: ".$s);
 
        $s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);