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 9de7d22 commit 015de44Copy full SHA for 015de44
src/Lemon/Templating/Environment.php
@@ -35,6 +35,6 @@ public function escapeScript(mixed $content): string
35
*/
36
public function escapeAttribute(mixed $content): string
37
{
38
- return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars($content);
+ return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars((string) $content);
39
}
40
0 commit comments