1
1
Fork 0

Unbalanced html fixed

This commit is contained in:
Michael 2018-01-11 22:34:56 +00:00
parent e18e081b47
commit c0eecfc55f

View file

@ -199,7 +199,6 @@ class OEmbed
break;
}
$ret .= '</div>';
// add link to source if not present in "rich" type
if ($j->type != 'rich' || !strpos($j->html, $embedurl)) {
$ret .= '<h4>';
@ -238,6 +237,8 @@ class OEmbed
$ret .= '<a href="' . $embedurl . '" rel="oembed">' . $j->title . '</a>';
}
$ret .= '</div>';
$ret = str_replace("\n", "", $ret);
return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
}