fix: fix xml escape in worksheet xml

This commit is contained in:
Shalom Yiblet
2024-12-18 21:06:27 -08:00
committed by Nicolás Hatcher Andrés
parent f6fbb4b303
commit 0dd26e8fee
2 changed files with 2 additions and 1 deletions

View File

@@ -192,9 +192,10 @@ pub(crate) fn get_worksheet_xml(
&parsed_formulas[*f as usize], &parsed_formulas[*f as usize],
); );
let style = get_cell_style_attribute(*s); let style = get_cell_style_attribute(*s);
let escaped_v = escape_xml(v);
row_data_str.push(format!( row_data_str.push(format!(
"<c r=\"{cell_name}\" t=\"str\"{style}><f>{formula}</f><v>{v}</v></c>" "<c r=\"{cell_name}\" t=\"str\"{style}><f>{formula}</f><v>{escaped_v}</v></c>"
)); ));
} }
Cell::CellFormulaError { Cell::CellFormulaError {

Binary file not shown.