File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1200,11 +1200,17 @@ Option Description
12001200``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
12011201 generated XML
12021202``cdata_wrapping `` If set to false, will not wrap any value ``true ``
1203- containing one of the following characters (
1204- ``< ``, ``> ``, ``& ``) in `a CDATA section `_ like
1205- following: ``<![CDATA[...]]> ``
1203+ matching the ``cdata_wrapping_pattern `` regex in
1204+ `a CDATA section `_ like following:
1205+ ``<![CDATA[...]]> ``
1206+ ``cdata_wrapping_pattern `` A regular expression pattern to determine if a ``/[<>&]/ ``
1207+ value should be wrapped in a CDATA section
12061208============================== ================================================= ==========================
12071209
1210+ .. versionadded :: 7.1
1211+
1212+ The `cdata_wrapping_pattern ` option was introduced in Symfony 7.1.
1213+
12081214Example with custom ``context ``::
12091215
12101216 use Symfony\Component\Serializer\Encoder\XmlEncoder;
You can’t perform that action at this time.
0 commit comments