Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/export/xml/data/ |
Upload File : |
<?php namespace Yandex\Market\Export\Xml\Data; class CDataValue { private $body; public function __construct($body) { $this->body = $body; } public function __toString() { return $this->body; } public function toXml() { $content = str_replace( ['<![CDATA[', ']]>'], ['<![CDATA[', ']]>'], $this->body ); $content = preg_replace("/[\x1-\x8\xB-\xD\xE-\x1F]/", '', $content); // remove special chars return '<![CDATA[' . PHP_EOL . $content . PHP_EOL . ']]>'; } }