File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1160,8 +1160,16 @@ Option Description
1160
1160
``save_options `` XML saving `options with libxml `_ ``0 ``
1161
1161
``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
1162
1162
generated XML
1163
+ ``cdata_wrapping `` If set to false, will not wrap any value ``true ``
1164
+ containing one of the following characters (
1165
+ ``< ``, ``> ``, ``& ``) in `a CDATA section `_ like
1166
+ following: ``<![CDATA[...]]> ``
1163
1167
============================== ================================================= ==========================
1164
1168
1169
+ .. versionadded :: 6.4
1170
+
1171
+ The `cdata_wrapping ` option was introduced in Symfony 6.4.
1172
+
1165
1173
Example with custom ``context ``::
1166
1174
1167
1175
use Symfony\Component\Serializer\Encoder\XmlEncoder;
@@ -1881,3 +1889,4 @@ Learn more
1881
1889
.. _`data URI` : https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
1882
1890
.. _seld/jsonlint : https://github.com/Seldaek/jsonlint
1883
1891
.. _$flags : https://www.php.net/manual/en/json.constants.php
1892
+ .. _`a CDATA section` : https://en.wikipedia.org/wiki/CDATA
You can’t perform that action at this time.
0 commit comments