Skip to content

Commit

Permalink
Merge pull request #215 from sandello-alkr/patch-3
Browse files Browse the repository at this point in the history
raw filter for labels
  • Loading branch information
Florian Eckerstorfer committed Apr 8, 2014
2 parents 809fa89 + 498fb9b commit a03bc03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/views/Form/bootstrap.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{{ block('checkbox_widget') }}
{{ label|trans({}, translation_domain) }}
{{ label|trans({}, translation_domain)|raw }}
</label>
{% else %}
{{ block('checkbox_widget') }}
Expand Down Expand Up @@ -322,7 +322,7 @@
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{{ block('radio_widget') }}
{{ label|trans({}, translation_domain) }}
{{ label|trans({}, translation_domain)|raw }}
</label>
{% else %}
{{ block('radio_widget') }}
Expand Down Expand Up @@ -545,7 +545,7 @@
{% if label is empty %}
{% set label = name|humanize %}
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label|trans({}, translation_domain) }}</label>
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label|trans({}, translation_domain)|raw }}</label>
{% endif %}
{% endspaceless %}
{% endblock form_label %}
Expand Down

0 comments on commit a03bc03

Please sign in to comment.