Disables warning due to html5 tags on loadHTML in embed class.

This commit is contained in:
mateuswetah 2022-01-28 11:22:04 -03:00
parent 1f1cc48a40
commit 5cd34b71ef
1 changed files with 2 additions and 0 deletions

View File

@ -143,7 +143,9 @@ class Embed {
$width = false; $width = false;
$dom = new \DOMDocument(); $dom = new \DOMDocument();
libxml_use_internal_errors(true);
$dom->loadHTML($html); $dom->loadHTML($html);
libxml_clear_errors();
// If we have a fixed aspect iframe, and it's a responsive embed content. // If we have a fixed aspect iframe, and it's a responsive embed content.
if ($dom) { if ($dom) {