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 64203a4 commit 312971dCopy full SHA for 312971d
src/Drivers/HtmlDriver.php
@@ -21,7 +21,13 @@ public function serialize($data): string
21
22
@$domDocument->loadHTML($data); // to ignore HTML5 errors
23
24
- return $domDocument->saveHTML();
+ $htmlValue = $domDocument->saveHTML();
25
+ // Normalize line endings for cross-platform tests.
26
+ if (PHP_OS_FAMILY === 'Windows') {
27
+ $htmlValue = implode("\n", explode("\r\n", $htmlValue));
28
+ }
29
+
30
+ return $htmlValue;
31
}
32
33
public function extension(): string
0 commit comments