Skip to content

Form Labels translation does not allow raw content (Add label_html option) #35598

@MihaiBwr

Description

@MihaiBwr

Description
Based on this PR: #28635
I am trying to do the following:

->add('confirmedAgb', CheckboxType::class, [
                'label' => 'some.label',
                'label_translation_parameters' => [
                    '%start_link%' => '<a href="https://www.de" target="_blank">',
                    '%end_link' => '</a>'
                ],
            ])

but the result is

<a href="https://www.de" target="_blank"> link </a> here

This function is great but it's missing this important piece.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions