From: Michael Date: Thu, 11 Jan 2018 22:34:56 +0000 (+0000) Subject: Unbalanced html fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0eecfc55fd84d7ef4ec51704fe47f6d0b470ef5;p=friendica.git Unbalanced html fixed --- 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)); }