This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
XRay
mirror of
https://github.com/aaronpk/XRay.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
77
Wiki
Activity
Browse Source
Fix Domdocument error
pull/107/head
Josemar Lohn
3 years ago
parent
504f59555d
commit
440d31dc0b
No known key found for this signature in database
GPG Key ID:
441E69D80355E46F
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
{
Write
Preview
Loading…
Cancel
Save