diff --git a/emoji.go b/emoji.go index e533c51..fc5ddc7 100644 --- a/emoji.go +++ b/emoji.go @@ -1,7 +1,9 @@ package openwechat import ( + "html" "regexp" + "strconv" "strings" ) @@ -285,9 +287,6 @@ var Emoji = struct { func FormatEmoji(text string) string { result := emojiRegexp.FindAllStringSubmatch(text, -1) - if len(result) == 0 { - return text - } for _, item := range result { if len(item) != 2 {