Anonymous Anonymous - 3 years ago
1065 0

Example how to generate correct HTML markup in the form label.


Symfony2 Twig form label with HTML markup

# when username is your form element
{% autoescape false %}{{ form.username.vars.label | trans }}{% endautoescape %}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download