Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
cdata.php
Go to the documentation of this file.
1 <?php
6 return [
7  'root' => [
8  [
9  'simple' => [['node_two' => [['__content__' => 'valueOne']]]],
10  'cdata' => [['node_one' => [['__content__' => '<valueTwo>']]]],
11  'mixed' => [
12  [
13  'node_one' => [
14  ['__attributes__' => ['attributeOne' => '10'], '__content__' => '<valueThree>'],
15  ['__attributes__' => ['attributeTwo' => '20'], '__content__' => 'valueFour'],
16  ],
17  ],
18  ],
19  'mixed_different_names' => [
20  [
21  'node_one' => [['__content__' => 'valueFive']],
22  'node_two' => [['__content__' => 'valueSix']],
23  ],
24  ],
25  ],
26  ]
27 ];