From: Mikael Nordfeldth Date: Thu, 17 Mar 2016 11:58:40 +0000 (+0100) Subject: Full-content oEmbed html doesn't take up all space (and renders properly) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=365f3d2aa5ad1795deec11b6a5554d683c16585b;p=quix0rs-gnu-social.git Full-content oEmbed html doesn't take up all space (and renders properly) --- diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 65d71f39c8..4497728c4c 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -248,7 +248,7 @@ class OembedPlugin extends Plugin $out->element('div', ['class'=>'error'], $e->getMessage()); } $out->elementStart('h5', ['class'=>'oembed-title']); - $out->element('a', ['href'=>$file->getUrl()], $oembed->title); + $out->element('a', ['href'=>$file->getUrl()], common_strip_html($oembed->title)); $out->elementEnd('h5'); $out->elementStart('div', ['class'=>'oembed-source']); if (!empty($oembed->author_name)) { @@ -279,7 +279,9 @@ class OembedPlugin extends Plugin } $out->elementEnd('div'); $out->elementEnd('header'); - $out->element('div', ['class'=>'oembed-item-body'], common_purify($oembed->html)); + $out->elementStart('div', ['class'=>'oembed-html']); + $out->raw(common_purify($oembed->html)); + $out->elementEnd('div'); $out->elementStart('footer'); $out->elementEnd('footer'); $out->elementEnd('article');