aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/HtmlParser.php2
1 files changed, 2 insertions, 0 deletions
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;