File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1200,15 +1200,21 @@ Option Description
1200
1200
``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
1201
1201
generated XML
1202
1202
``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
1206
1208
============================== ================================================= ==========================
1207
1209
1208
1210
.. versionadded :: 6.4
1209
1211
1210
1212
The `cdata_wrapping ` option was introduced in Symfony 6.4.
1211
1213
1214
+ .. versionadded :: 7.1
1215
+
1216
+ The `cdata_wrapping_pattern ` option was introduced in Symfony 7.1.
1217
+
1212
1218
Example with custom ``context ``::
1213
1219
1214
1220
use Symfony\Component\Serializer\Encoder\XmlEncoder;
You can’t perform that action at this time.
0 commit comments