diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 46442dd6f1..3ab5b4fea8 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -199,7 +199,6 @@ class OEmbed break; } - $ret .= ''; // add link to source if not present in "rich" type if ($j->type != 'rich' || !strpos($j->html, $embedurl)) { $ret .= '

'; @@ -238,6 +237,8 @@ class OEmbed $ret .= '' . $j->title . ''; } + $ret .= ''; + $ret = str_replace("\n", "", $ret); return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret)); }