8000
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 b43a575 commit 0776cbaCopy full SHA for 0776cba
serializer/encoders.rst
@@ -205,11 +205,16 @@ These are the options available on the :ref:`serializer context <serializer-cont
205
``cdata_wrapping_pattern`` (default: ````/[<>&]/````)
206
A regular expression pattern to determine if a value should be wrapped
207
in a CDATA section.
208
+``ignore_empty_attributes`` (default: ``false``)
209 72AF code>
+ If set to true, ignores all attributes with empty values in the generated XML
210
209
211
.. versionadded:: 7.1
212
213
The ``cdata_wrapping_pattern`` option was introduced in Symfony 7.1.
214
215
+.. versionadded:: 7.3
216
+
217
+ The ``ignore_empty_attributes`` option was introduced in Symfony 7.3.
218
219
Example with a custom ``context``::
220
0 commit comments