olalav - 2022-12-07
diff --git a/simple_html_dom.php b/simple_html_dom.php
index bce4d9e..97d6e1d 100644
--- a/simple_html_dom.php
+++ b/simple_html_dom.php
@@ -117,3 +117,3 @@ function file_get_html(
                $dom->clear();
-               return false;
+               $contents = "";
        }
@@ -144,5 +144,4 @@ function str_get_html(
                $dom->clear();
-               return false;
+               $contents = "";
        }
-
        return $dom->load($str, $lowercase, $stripRN);

Better version with tabs.

PS! The inline editor and preview function on the site seems to hide the first line of content :|