Starting version 5.4.0 the Product Feed module has the ability to remove CDATA from feeds. You need to install the 'amasty/module-product-feed-subscription-functionality' package from composer suggest to use this functionality (the functionality is available as a part of an active product subscription or support subscription).
Once installed, you'll be able to enable the Disable CDATA Wrapping for Field Values setting for the XML feeds in the Catalog > Feeds > Profiles > [your feed] > General:
- When the option is enabled, the module generates XML without the
<![CDATA[...]]> wrapper, even when modifiers are applied to fields.
- Values are escaped using standard XML entities (
&, <, >, as well as escaped double and single quotes).
- If invalid XML characters appear in the feed due to the absence of CDATA, they will be escaped using the HTML Escape modifier (as it currently works).
- If a client enables this setting and later manually adds CDATA, those manual changes should not be affected.
- When the setting value is changed, the feed must be regenerated for the new configuration to be applied.
Here's an example of the feed with the disabled setting:
Here's an example of the feed with the enabled setting: