diff --git a/xlsxwriter.class.php b/xlsxwriter.class.php
index 52a7071cb..9f330eaa7 100644
--- a/xlsxwriter.class.php
+++ b/xlsxwriter.class.php
@@ -370,7 +370,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') {