diff --git a/serializer/encoders.rst b/serializer/encoders.rst index 8238d4d057d..c3fb2e26b50 100644 --- a/serializer/encoders.rst +++ b/serializer/encoders.rst @@ -205,6 +205,10 @@ These are the options available on the :ref:`serializer context &]/``) A regular expression pattern to determine if a value should be wrapped in a CDATA section. +``cdata_wrapping_name_pattern`` (default: ``false``) + A regular expression pattern that defines the names of fields whose values + should always be wrapped in a CDATA section, even if their contents don't + require it. Example: ``'/(firstname|lastname)/'`` ``ignore_empty_attributes`` (default: ``false``) If set to true, ignores all attributes with empty values in the generated XML @@ -216,6 +220,10 @@ These are the options available on the :ref:`serializer context