X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a456368741ffa03a63f9ebeaacc90d5e3a811f52..894b39fb81760fb6fbff105159da993b512f8ce3:/src/phorkie/HtmlParser.php?ds=sidebyside diff --git a/src/phorkie/HtmlParser.php b/src/phorkie/HtmlParser.php index 38d8af8..257dfe1 100644 --- a/src/phorkie/HtmlParser.php +++ b/src/phorkie/HtmlParser.php @@ -174,6 +174,8 @@ class HtmlParser public function getHtmlTitle($url) { libxml_use_internal_errors(true); + //allow loading URLs in DOMDocument + libxml_disable_entity_loader(false); $doc = \DOMDocument::loadHTMLFile($url); if ($doc === false) { return null;