1
0
Fork 0

bb2diaspora: added one more page break. In the future it could be replaced by a regular expression.

This commit is contained in:
Michael Vogel 2014-08-09 09:20:37 +02:00
parent b99737986d
commit 731d944ab5

View file

@ -21,7 +21,7 @@ function diaspora2bb($s) {
$s = str_replace("\r","",$s);
// <br/> is invalid. Replace it with the valid expression
$s = str_replace(array("<br/>", "</p>", "<p>"),array("<br />", "<br />", "<br />"),$s);
$s = str_replace(array("<br/>", "</p>", "<p>", '<p dir="ltr">'),array("<br />", "<br />", "<br />", "<br />"),$s);
$s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);