mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
Sanitize html for good measure
This commit is contained in:
@@ -20,7 +20,7 @@ final readonly class ChillGenderIconRender implements ChillEntityRenderInterface
|
|||||||
{
|
{
|
||||||
public function renderBox($icon, array $options): string
|
public function renderBox($icon, array $options): string
|
||||||
{
|
{
|
||||||
return '<i class="'.$icon->value.'"></i>';
|
return '<i class="'.htmlspecialchars($icon->value, ENT_QUOTES, 'UTF-8').'"></i>';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderString($icon, array $options): string
|
public function renderString($icon, array $options): string
|
||||||
|
Reference in New Issue
Block a user