From 20fca31cedb2fa52d0e98128e5b4f0f95d8ea629 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sun, 8 Jun 2025 11:06:41 +0200 Subject: [PATCH] Escape line breaks --- app/Browser/BrowserJob.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Browser/BrowserJob.php b/app/Browser/BrowserJob.php index 8cf4d62..2e0bb2f 100644 --- a/app/Browser/BrowserJob.php +++ b/app/Browser/BrowserJob.php @@ -297,6 +297,7 @@ abstract class BrowserJob implements ShouldQueue */ private function parseJavaScriptString(string $string): string { + $string = str_replace("\n", "\\n", $string); return str_replace("'", "\\'", $string); }