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.
2 parents 0bc99d0 + a3ab3af commit 04de4c5Copy full SHA for 04de4c5
serializer/encoders.rst
@@ -198,6 +198,10 @@ These are the options available on the :ref:`serializer context <serializer-cont
198
``cdata_wrapping_pattern`` (default: ``/[<>&]/``)
199
A regular expression pattern to determine if a value should be wrapped
200
in a CDATA section.
201
+``cdata_wrapping_name_pattern`` (default: ``false``)
202
+ A regular expression pattern that defines the names of fields whose values
203
+ should always be wrapped in a CDATA section, even if their contents don't
204
+ require it. Example: ``'/(firstname|lastname)/'``
205
``ignore_empty_attributes`` (default: ``false``)
206
If set to true, ignores all attributes with empty values in the generated XML
207
0 commit comments