diff --git a/reference/forms/types/options/trim.rst.inc b/reference/forms/types/options/trim.rst.inc index 68ba656be94..5303e7ff26e 100644 --- a/reference/forms/types/options/trim.rst.inc +++ b/reference/forms/types/options/trim.rst.inc @@ -4,6 +4,6 @@ trim **type**: ``Boolean`` **default**: ``true`` If true, the whitespace of the submitted string value will be stripped -via the ``trim()`` function when the data is bound. This guarantees that +via the :phpfunction:`trim` function when the data is bound. This guarantees that if a value is submitted with extra whitespace, it will be removed before the value is merged back onto the underlying object. diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index eefe8eb7c31..7341d4eea8d 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -76,4 +76,12 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/required.rst.inc -.. include:: /reference/forms/types/options/trim.rst.inc +trim +~~~~ + +**type**: ``Boolean`` **default**: ``false`` + +If true, the whitespace of the submitted string value will be stripped +via the :phpfunction:`trim` function when the data is bound. This guarantees that +if a value is submitted with extra whitespace, it will be removed before +the value is merged back onto the underlying object.