EPPlus LoadFromDataTable() is double escaping ampersands
问题 Here's my code: ExcelPackage pck = new ExcelPackage(stream); ExcelWorksheet ws = pck.Workbook.Worksheets.Add("Rules"); ws.Cells["A1"].LoadFromDataTable(_rules, true); ws.Cells[ws.Dimension.Address].AutoFitColumns(); ws.Cells[ws.Dimension.Address].Style.WrapText = true; pck.Save(); The _rules DataTable has rows whose text contains an ampersand: &. Let's say AT&T for example. When viewing the file in Excel, the text appears as AT&T . I drilled down on the sharedStrings.xml and found the text