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 9cfb502 commit 04e49b7Copy full SHA for 04e49b7
src/Handler/HtmlTagBuilder/HtmlTagBuilder.php
@@ -127,6 +127,7 @@ protected function getAttributeString(array $attributes): string
127
if (empty($value)) {
128
continue;
129
}
130
+ $value = htmlspecialchars($value, ENT_COMPAT | ENT_SUBSTITUTE);
131
$attributeParts[] = mb_strtolower($key) . '="' . $value . '"';
132
133
unset($value);
0 commit comments