We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e86d149 + b27d38b commit 8ea8134Copy full SHA for 8ea8134
1 file changed
spoon/form/attributes.php
@@ -75,7 +75,7 @@ protected function getAttributesHTML(array $variables)
75
else
76
{
77
$html .= ' ' . $key;
78
- if($value !== null) $html .= '="' . str_replace(array_keys($variables), array_values($variables), $value) . '"';
+ if($value !== null) $html .= '="' . Spoonfilter::htmlSpecialChars(str_replace(array_keys($variables), array_values($variables), $value)) . '"';
79
}
80
81
0 commit comments