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 @@ -1199,8 +1199,16 @@ Option Description
11991199``save_options `` XML saving `options with libxml `_ ``0 ``
12001200``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
12011201 generated XML
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[...]]> ``
12021206============================== ================================================= ==========================
12031207
1208+ .. versionadded :: 6.4
1209+
1210+ The `cdata_wrapping ` option was introduced in Symfony 6.4.
1211+
12041212Example with custom ``context ``::
12051213
12061214 use Symfony\Component\Serializer\Encoder\XmlEncoder;
@@ -1920,3 +1928,4 @@ Learn more
19201928.. _`data URI` : https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
19211929.. _seld/jsonlint : https://github.com/Seldaek/jsonlint
19221930.. _$flags : https://www.php.net/manual/en/json.constants.php
1931+ .. _`a CDATA section` : https://en.wikipedia.org/wiki/CDATA
You can’t perform that action at this time.
0 commit comments