CI_Typography::_protect_characters PHP Метод

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

Protects special characters from being formatted later We don't want quotes converted within tags so we'll temporarily convert them to {@DQ} and {@SQ} and we don't want double dashes converted to emdash entities, so they are marked with {@DD} likewise double spaces are converted to {@NBS} to prevent entity conversion
protected _protect_characters ( $match ) : string
Результат string
    protected function _protect_characters($match)
    {
        return str_replace(array("'", '"', '--', '  '), array('{@SQ}', '{@DQ}', '{@DD}', '{@NBS}'), $match[0]);
    }