source/Core/UtilsString.php
public function prepareCSVField($sInField)
    {
        $oStr = getStr();
        if ($oStr->strstr($sInField, '"')) {
            return '"' . str_replace('"', '""', $sInField) . '"';
        } elseif ($oStr->strstr($sInField, ';')) {
            return '"' . $sInField . '"';
        }

        return $sInField;
    }
public function prepareCSVField($sInField)
    {
        $oStr = getStr();
        if ($oStr->strstr($sInField, '"')) {
            return '"' . str_replace('"', '""', $sInField) . '"';
        } elseif ($oStr->strstr($sInField, ';')) {
            return '"' . $sInField . '"';
        }

        return $sInField;
    }
public function prepareCSVField ( $ sInField ) { $ oStr = getStr ( ) ; if ( $ oStr -> strstr ( $ sInField , '"' ) ) { return '"' . str_replace ( '"' , '""' , $ sInField ) . '"' ; } elseif ( $ oStr -> strstr ( $ sInField , ';' ) ) { return '"' . $ sInField . '"' ; } return $ sInField ; }
Prepares passed string for CSV format

@param string $sInField String to prepare

@return string
Prepares passed string for CSV format