Merge pull request #4212 from annando/develop

Unbalanced HTML ...
pull/4218/head
Hypolite Petovan 2018-01-11 17:55:45 -05:00 committed by GitHub
commit ef09f7f958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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));
}