diff --git a/src/classes/class-tainacan-embed.php b/src/classes/class-tainacan-embed.php index cb2ec55a8..9888c199f 100644 --- a/src/classes/class-tainacan-embed.php +++ b/src/classes/class-tainacan-embed.php @@ -143,7 +143,9 @@ class Embed { $width = false; $dom = new \DOMDocument(); + libxml_use_internal_errors(true); $dom->loadHTML($html); + libxml_clear_errors(); // If we have a fixed aspect iframe, and it's a responsive embed content. if ($dom) {