Disables warning due to html5 tags on loadHTML in embed class.
This commit is contained in:
parent
1f1cc48a40
commit
5cd34b71ef
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue