File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ A simple, non-responsive button.
13
13
| options | - `attr_translation_parameters `_ |
14
14
| | - `disabled `_ |
15
15
| | - `label `_ |
16
+ | | - `label_html `_ |
16
17
| | - `label_translation_parameters `_ |
17
18
| | - `row_attr `_ |
18
19
| | - `translation_domain `_ |
@@ -53,6 +54,8 @@ as a key. This can be useful when you need to set a custom class for the button:
53
54
54
55
.. include :: /reference/forms/types/options/button_label.rst.inc
55
56
57
+ .. include :: /reference/forms/types/options/label_html.rst.inc
58
+
56
59
.. include :: /reference/forms/types/options/button_translation_domain.rst.inc
57
60
58
61
label_translation_parameters
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ on all types for which ``FormType`` is the parent.
42
42
| | - `block_prefix `_ |
43
43
| | - `disabled `_ |
44
44
| | - `label `_ |
45
+ | | - `label_html `_ |
45
46
| | - `row_attr `_ |
46
47
| | - `translation_domain `_ |
47
48
| | - `label_translation_parameters `_ |
@@ -172,6 +173,8 @@ of the form type tree (i.e. it cannot be used as a form type on its own).
172
173
173
174
.. include :: /reference/forms/types/options/label.rst.inc
174
175
176
+ .. include :: /reference/forms/types/options/label_html.rst.inc
177
+
175
178
.. include :: /reference/forms/types/options/row_attr.rst.inc
176
179
177
180
.. include :: /reference/forms/types/options/translation_domain.rst.inc
Original file line number Diff line number Diff line change
1
+ ``label_html``
2
+ ~~~~~~~~~~~~~~
3
+
4
+ **type**: ``bool `` **default **: ``false ``
5
+
6
+ By default , the contents of the ``label`` option are escaped before rendering
7
+ them in the template . Set this option to ``true `` to not escape them, which is
8
+ useful when the label contains HTML elements.
You can’t perform that action at this time.
0 commit comments