We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LIBXML_HTML_NODEFDTD
1 parent 0860a5e commit a1fda28Copy full SHA for a1fda28
src/Drivers/HtmlDriver.php
@@ -19,7 +19,7 @@ public function serialize($data): string
19
$domDocument->preserveWhiteSpace = false;
20
$domDocument->formatOutput = true;
21
22
- @$domDocument->loadHTML($data); // to ignore HTML5 errors
+ @$domDocument->loadHTML($data, LIBXML_HTML_NODEFDTD); // to ignore HTML5 errors
23
24
$htmlValue = $domDocument->saveHTML();
25
// Normalize line endings for cross-platform tests.
0 commit comments