From c0eecfc55fd84d7ef4ec51704fe47f6d0b470ef5 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 11 Jan 2018 22:34:56 +0000 Subject: [PATCH] Unbalanced html fixed --- src/Content/OEmbed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.39.5