Skip to content

[Form] Add description of label_html option #13316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1260,10 +1260,6 @@ You can also configure the session handler with a DSN. For example:
],
]);

.. versionadded:: 4.4

The option to configure the session handler with a DSN was introduced in Symfony 4.4.

If you prefer to make Symfony store sessions in a database read
:doc:`/doctrine/pdo_session_storage`.

Expand Down
3 changes: 3 additions & 0 deletions reference/forms/types/button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A simple, non-responsive button.
| options | - `attr_translation_parameters`_ |
| | - `disabled`_ |
| | - `label`_ |
| | - `label_html`_ |
| | - `label_translation_parameters`_ |
| | - `row_attr`_ |
| | - `translation_domain`_ |
Expand Down Expand Up @@ -53,6 +54,8 @@ as a key. This can be useful when you need to set a custom class for the button:

.. include:: /reference/forms/types/options/button_label.rst.inc

.. include:: /reference/forms/types/options/label_html.rst.inc

.. include:: /reference/forms/types/options/button_translation_domain.rst.inc

label_translation_parameters
Expand Down
3 changes: 3 additions & 0 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ on all types for which ``FormType`` is the parent.
| | - `block_prefix`_ |
| | - `disabled`_ |
| | - `label`_ |
| | - `label_html`_ |
| | - `row_attr`_ |
| | - `translation_domain`_ |
| | - `label_translation_parameters`_ |
Expand Down Expand Up @@ -172,6 +173,8 @@ of the form type tree (i.e. it cannot be used as a form type on its own).

.. include:: /reference/forms/types/options/label.rst.inc

.. include:: /reference/forms/types/options/label_html.rst.inc

.. include:: /reference/forms/types/options/row_attr.rst.inc

.. include:: /reference/forms/types/options/translation_domain.rst.inc
Expand Down
8 changes: 8 additions & 0 deletions reference/forms/types/options/label_html.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
``label_html``
~~~~~~~~~~~~~~

**type**: ``bool`` **default**: ``false``

By default, the contents of the ``label`` option are escaped before rendering
them in the template. Set this option to ``true`` to not escape them, which is
useful when the label contains HTML elements.