1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-05 13:12:26 +08:00

fix: 添加 CDATA 注释

This commit is contained in:
陈灿鑫
2019-11-08 10:24:47 +08:00
parent e09031b58c
commit bf456aa77b

View File

@@ -184,6 +184,7 @@ type CommonToken struct {
MsgType MsgType `xml:"MsgType"`
}
// CDATA 使用该类型,在序列化为 xml 文本时文本会被解析器忽略
type CDATA string
func (c CDATA) MarshalXML(e *xml.Encoder, start xml.StartElement) error {