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

Revert "fix: 序列化 xml 时添加 cdata 标签"

This commit is contained in:
silenceper
2019-11-12 15:05:07 +08:00
committed by GitHub
parent 76c1832798
commit c30319c74c
2 changed files with 10 additions and 20 deletions

View File

@@ -3,12 +3,12 @@ package message
//Text 文本消息
type Text struct {
CommonToken
Content CDATA `xml:"Content"`
Content string `xml:"Content"`
}
//NewText 初始化文本消息
func NewText(content string) *Text {
text := new(Text)
text.Content = CDATA(content)
text.Content = content
return text
}