Escape line breaks
All checks were successful
Push image to registry / build-image (push) Successful in 4m49s
All checks were successful
Push image to registry / build-image (push) Successful in 4m49s
This commit is contained in:
@ -297,6 +297,7 @@ abstract class BrowserJob implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
private function parseJavaScriptString(string $string): string
|
private function parseJavaScriptString(string $string): string
|
||||||
{
|
{
|
||||||
|
$string = str_replace("\n", "\\n", $string);
|
||||||
return str_replace("'", "\\'", $string);
|
return str_replace("'", "\\'", $string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user