Set is_safe html to true

This commit is contained in:
2023-06-27 11:33:38 +01:00
parent 9248b51908
commit 1d91b50c32

View File

@@ -16,7 +16,7 @@ final class IconExtension extends AbstractExtension
public function getFunctions(): array public function getFunctions(): array
{ {
return [ return [
new TwigFunction('pcm_icon', [IconRuntime::class, 'renderIcon']) new TwigFunction('pcm_icon', [IconRuntime::class, 'renderIcon'], ['is_safe' => ['html']])
]; ];
} }
} }