Skip to content

Bug with CDATA in XML layout update #12322

@VegtMedia-Alex

Description

@VegtMedia-Alex

When you enter the first time a xml with CDATA it works as expected. After saving the CDATA tag is gone. More information:

https://magento.stackexchange.com/questions/199377/cdata-removed-from-layout-update-xml-after-saving-cms-page-in-magento-2

Magento version 2.2.0

The CDATA tag is added in the database field, so it gets stripped when they view is outputting the code from the database.

It happens in this file:
/vendor/magento/module-ui/TemplateEngine/Xhtml/Result.php

screen shot 2017-11-17 at 11 35 49

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions