瀏覽代碼

Fix #578, escape character in the formula

xuri 5 年之前
父節點
當前提交
52f1eee7c4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xmlWorksheet.go

+ 1 - 1
xmlWorksheet.go

@@ -475,7 +475,7 @@ func (c *xlsxC) hasValue() bool {
 // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
 // not checked it for completeness - it does as much as I need.
 type xlsxF struct {
-	Content string `xml:",innerxml"`
+	Content string `xml:",chardata"`
 	T       string `xml:"t,attr,omitempty"`   // Formula type
 	Ref     string `xml:"ref,attr,omitempty"` // Shared formula ref
 	Si      string `xml:"si,attr,omitempty"`  // Shared formula index