Skip to content

Commit

Permalink
remove is_safe
Browse files Browse the repository at this point in the history
1. this appears to be a copy-pasta from ..._html
2. on Pimcore 10 / Symfony 5 this appears not to have had an effect
3. on Pimcore 11 / Symfony 6 this results in double quotes being present inside an HTML attribute which breaks rendering
  • Loading branch information
limenet committed Feb 19, 2024
1 parent c9207be commit 5d267af
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Document/Twig/Extension/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function getFunctions(): array
new TwigFunction(
'valantic_form_json',
fn (string $name): string => $this->formService->buildJsonString($name),
[
'is_safe' => ['html'],
]
),
];
}
Expand Down

0 comments on commit 5d267af

Please sign in to comment.