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 9d7ec20 commit c565e9eCopy full SHA for c565e9e
src/TwigComponent/src/ComponentAttributes.php
@@ -80,7 +80,7 @@ public function __toString(): string
80
// xml:*, xmlns:*,
81
// - special syntax names (Vue.js, Svelte, Alpine.js, ...)
82
// v-*, x-*, @*, :*
83
- if (!ctype_alpha(str_replace(['-', '_', ':', '@', '.'], '', $key))) {
+ if (!ctype_alnum(str_replace(['-', '_', ':', '@', '.'], '', $key))) {
84
$key = (string) $this->escaper->escape($key, 'html_attr');
85
}
86
0 commit comments