diff options
author | friendica <info@friendica.com> | 2014-07-01 18:21:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-01 18:21:22 -0700 |
commit | fc69220b94efb39169e401b31e70904ac3294255 (patch) | |
tree | bebcdd76c7b28afaf7367a75e5c8510acf426622 /include/bb2diaspora.php | |
parent | f5a1c39cdd06ff9991cbd63f48163325709aeaeb (diff) | |
download | volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.tar.gz volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.tar.bz2 volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.zip |
easter egg
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r-- | include/bb2diaspora.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index f9ecc564f..2ac1f43c8 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -74,9 +74,6 @@ function bb_tag_preg_replace($pattern, $replace, $name, $s) { function diaspora2bb($s) { - // for testing purposes: Collect raw markdown articles - // $file = tempnam("/tmp/friendica/", "markdown"); - // file_put_contents($file, $s); $s = html_entity_decode($s,ENT_COMPAT,'UTF-8'); @@ -87,6 +84,7 @@ function diaspora2bb($s) { // <br/> is invalid. Replace it with the valid expression $s = str_replace("<br/>","<br />",$s); + $s = str_replace("\n","<br />",$s); $s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s); |