File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ The ``field`` type predefines a couple of options:
22
22
.. include :: /reference/forms/types/options/attr.rst.inc
23
23
24
24
.. include :: /reference/forms/types/options/translation_domain.rst.inc
25
+
26
+ .. include :: /reference/forms/types/options/escape_label.rst.inc
Original file line number Diff line number Diff line change
1
+ escape_label
2
+ ~~~~~~~~~~~~
3
+ **type**: ``Boolean`` **default**: ``true``
4
+
5
+ .. versionadded:: 2.1
6
+ The ``escape_label`` option is new in Symfony 2.1.
7
+
8
+ If set to false, the label's content won't be escaped. This option is useful when wanting to use HTML tags inside a label.
9
+
10
+ .. code-block:: php
11
+
12
+ $builder->add('acceptRules', 'checkbox', array(
13
+ 'label' => '<strong>I accept the rules</strong>',
14
+ 'escape_label' => false,
15
+ ));
16
+
17
+
You can’t perform that action at this time.
0 commit comments