Browse Source

Fix Domdocument error

pull/107/head
Josemar Lohn 3 years ago
parent
commit
440d31dc0b
No known key found for this signature in database GPG Key ID: 441E69D80355E46F
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/XRay/Formats/HTML.php

+ 3
- 0
lib/XRay/Formats/HTML.php View File

@ -25,6 +25,9 @@ class HTML extends Format {
// attempt to parse the page as HTML
$doc = new DOMDocument();
if (empty($html)) {
$html=' '; // ugly hack to make DOMDocument happy
};
@$doc->loadHTML(self::toHtmlEntities($html));
if(!$doc) {

Loading…
Cancel
Save