remove htmlspecialchars from saving

This commit is contained in:
2026-03-27 20:55:54 +03:00
parent 2a7b1fae17
commit 3e66d67dc5
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ try {
$columnLetter = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($col);
$cell = $worksheet->getCell($columnLetter . $header_row);
$cellValue = $cell ? $cell->getCalculatedValue() : ''; // Usa getCalculatedValue per le formule
$headerRowData[] = htmlspecialchars($cellValue ?: '');
$headerRowData[] = $cellValue ?: '';
}
// Estrai i dati a partire dalla riga successiva
@@ -80,7 +80,7 @@ try {
$columnLetter = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($col);
$cell = $worksheet->getCell($columnLetter . $row);
$cellValue = $cell ? $cell->getCalculatedValue() : ''; // Usa getCalculatedValue per le formule
$rowData[] = htmlspecialchars($cellValue ?: '');
$rowData[] = $cellValue ?: '';
}
if (!empty(array_filter($rowData))) {
$excelData[] = $rowData;