Diaspora: The HTML paragraph element was treated wrong when importing items from Diaspora
This commit is contained in:
parent
7614ae40ef
commit
834e0ff778
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ function diaspora2bb($s) {
|
||||||
$s = str_replace("\r","",$s);
|
$s = str_replace("\r","",$s);
|
||||||
|
|
||||||
// <br/> is invalid. Replace it with the valid expression
|
// <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);
|
$s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue