diff --git a/libs/shortcode.php b/libs/shortcode.php index c60d94d..2ade5e3 100644 --- a/libs/shortcode.php +++ b/libs/shortcode.php @@ -1,13 +1,53 @@ loadHTML(loadHTML5(file_get_contents($url)), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); + @$dom->loadHTML(loadHTML5($html_content), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $dom->documentURI = $url; $divs = $dom->getElementsByTagName('div'); foreach ($divs as $div) { @@ -59,4 +99,4 @@ function fwembed_shortcode( $atts ) { $store_render = '