Browse Source

Diaspora: The HTML paragraph element was treated wrong when importing items from Diaspora

pull/932/head
Michael Vogel 8 years ago
parent
commit
834e0ff778
  1. 4
      include/bb2diaspora.php

4
include/bb2diaspora.php

@ -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);

Loading…
Cancel
Save