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 345db87 commit 1f267d8Copy full SHA for 1f267d8
src/Latte/Macros.php
@@ -27,7 +27,7 @@ public function macroConfirm(MacroNode $node, PhpWriter $writer): string
27
28
$word = $words[0] ?? $this->options['confirmMessage'];
29
30
- $var = strpos($word, '$') !== false ? "' . %escape(%raw) . '" : "' . %escape(%word) . '";
+ $var = strpos($word, '$') !== false ? "' . %escape(%raw) . '" : "' . %escape('%word') . '";
31
32
return $writer->write(
33
'echo \'data-confirm="' . $var . '" onclick="return confirm(\\\'' . $var . '\\\')"\'',
0 commit comments