diff --git a/src/Lemon/Templating/Environment.php b/src/Lemon/Templating/Environment.php index 1582637..0553bcb 100644 --- a/src/Lemon/Templating/Environment.php +++ b/src/Lemon/Templating/Environment.php @@ -35,6 +35,6 @@ public function escapeScript(mixed $content): string */ public function escapeAttribute(mixed $content): string { - return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars($content); + return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars((string) $content); } }