|
|
@@ -176,7 +176,7 @@ class Helper implements EventListenerInterface
|
|
|
*/
|
|
|
protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
|
|
|
{
|
|
|
- $message = str_replace('\n', "\n", json_encode($message));
|
|
|
+ $message = str_replace('\\\n', '\n', json_encode($message));
|
|
|
$confirm = "if (confirm({$message})) { {$okCode} } {$cancelCode}";
|
|
|
// We cannot change the key here in 3.x, but the behavior is inverted in this case
|
|
|
$escape = isset($options['escape']) && $options['escape'] === false;
|