We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354350e commit 8036ff1Copy full SHA for 8036ff1
reference/forms/types/field.rst
@@ -22,3 +22,5 @@ The ``field`` type predefines a couple of options:
22
.. include:: /reference/forms/types/options/attr.rst.inc
23
24
.. include:: /reference/forms/types/options/translation_domain.rst.inc
25
+
26
+.. include:: /reference/forms/types/options/escape_label.rst.inc
reference/forms/types/options/escape_label.rst.inc
@@ -0,0 +1,14 @@
1
+escape_label
2
+~~~~~~~~~~~~
3
+**type**: ``Boolean`` **default**: ``true``
4
5
+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.
6
7
+.. code-block:: php
8
9
+ $builder->add('acceptRules', 'checkbox', array(
10
+ 'label' => '<strong>I accept the rules</strong>',
11
+ 'escape_label' => false,
12
+ ));
13
14
0 commit comments