fix: fix xml escape in worksheet xml
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
f6fbb4b303
commit
0dd26e8fee
@@ -192,9 +192,10 @@ pub(crate) fn get_worksheet_xml(
|
||||
&parsed_formulas[*f as usize],
|
||||
);
|
||||
let style = get_cell_style_attribute(*s);
|
||||
let escaped_v = escape_xml(v);
|
||||
|
||||
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 {
|
||||
|
||||
BIN
xlsx/tests/calc_tests/escape_strings.xlsx
Normal file
BIN
xlsx/tests/calc_tests/escape_strings.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user