We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6360120 commit c42bc26Copy full SHA for c42bc26
Mf2/Parser.php
@@ -366,6 +366,10 @@ class Parser {
366
public function __construct($input, $url = null, $jsonMode = false) {
367
libxml_use_internal_errors(true);
368
if (is_string($input)) {
369
+ if (empty($input)) {
370
+ $input = '<html><body></body></html>';
371
+ }
372
+
373
if (class_exists('Masterminds\\HTML5')) {
374
$doc = new \Masterminds\HTML5(array('disable_html_ns' => true));
375
$doc = $doc->loadHTML($input);
0 commit comments