diff --git a/xlsxwriter.class.php b/xlsxwriter.class.php index e4ebdc5eb..450ec4702 100644 --- a/xlsxwriter.class.php +++ b/xlsxwriter.class.php @@ -369,7 +369,7 @@ protected function writeCell(XLSXWriter_BuffererWriter &$file, $row_number, $col if (!is_scalar($value) || $value==='') { //objects, array, empty $file->write(''); } elseif (is_string($value) && $value[0]=='='){ - $file->write(''.self::xmlspecialchars($value).''); + $file->write(''.self::xmlspecialchars(ltrim($value, '=')).''); } elseif ($num_format_type=='n_date') { $file->write(''.intval(self::convert_date_time($value)).''); } elseif ($num_format_type=='n_datetime') {