summaryrefslogtreecommitdiffstats
path: root/articleenhancer/xpatharticleenhancer.php
diff options
context:
space:
mode:
Diffstat (limited to 'articleenhancer/xpatharticleenhancer.php')
-rw-r--r--articleenhancer/xpatharticleenhancer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php
index 87c80762b..3edaad695 100644
--- a/articleenhancer/xpatharticleenhancer.php
+++ b/articleenhancer/xpatharticleenhancer.php
@@ -71,7 +71,7 @@ class XPathArticleEnhancer implements ArticleEnhancer {
$dom = new \DOMDocument();
$loadEntities = libxml_disable_entity_loader(true);
- @$dom->loadHTML($body, LIBXML_NONET);
+ @$dom->loadHTML($body);
libxml_disable_entity_loader($loadEntities);
$xpath = new \DOMXpath($dom);
@@ -137,7 +137,7 @@ class XPathArticleEnhancer implements ArticleEnhancer {
// return, if xml is empty or loading the HTML fails
$loadEntities = libxml_disable_entity_loader(true);
- if( trim($xmlString) == "" || !@$dom->loadHTML($xmlString, LIBXML_NONET) ) {
+ if( trim($xmlString) == "" || !@$dom->loadHTML($xmlString) ) {
libxml_disable_entity_loader($loadEntities);
return $xmlString;
}