X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=2715334e46b0712f39aa5e2f514eedc81599c81c;hb=ae580e5829b49cbc699eb7aa0788fa93aebb1e1b;hp=2a70f95e59ee4fe159d3119b25558d92c8350507;hpb=01dab95d601e14b9bd594fb0156eac2c68c37a63;p=friendica.git
diff --git a/include/bbcode.php b/include/bbcode.php
index 2a70f95e59..2715334e46 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -63,7 +63,7 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
(similar_text($test1,$test2) / strlen($data["title"])) > 0.9)) {
$title2 = $data["url"];
}
- $text = sprintf('%s
',
+ $text = sprintf('%s
',
$data["url"], $data["title"], $title2);
} elseif (($simplehtml != 4) AND ($simplehtml != 0)) {
$text = sprintf('%s
', $data["url"], $data["title"]);
@@ -97,7 +97,7 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
}
}
}
- return $data["text"] . $text . $data["after"];
+ return trim($data["text"].' '.$text.' '.$data["after"]);
}
function bb_remove_share_information($Text, $plaintext = false, $nolink = false) {