N98\Magento\Command\LocalConfig\GenerateCommand::_wrapCData PHP Метод

_wrapCData() защищенный Метод

.. ]]> section if the string has length. in case the string has length and not the whole string can be wrapped in a CDATA section (because it contains a sequence that can not be part of a CDATA section "]]>") the part that can well be.
protected _wrapCData ( string $string ) : string
$string string
Результат string CDATA section or equivalent
    protected function _wrapCData($string)
    {
        $buffer = strtr($string, array(']]>' => ']]>]]&gt;<![CDATA['));
        $buffer = '<![CDATA[' . $buffer . ']]>';
        $buffer = strtr($buffer, array('<![CDATA[]]>' => ''));
        return $buffer;
    }