This commit is contained in:
cdle
2021-10-08 06:54:49 +08:00
parent a28ae98b3b
commit ffaee886a0
+1 -2
View File
@@ -3,7 +3,6 @@ package qq
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"regexp"
"strings" "strings"
"time" "time"
@@ -33,7 +32,7 @@ func (sender *Sender) GetContent() string {
text = coolq.ToStringMessage(m.Elements, m.GroupCode, true) text = coolq.ToStringMessage(m.Elements, m.GroupCode, true)
} }
text = strings.Replace(text, "amp;", "", -1) text = strings.Replace(text, "amp;", "", -1)
text = regexp.MustCompile(`&#\d+;`).ReplaceAllString(text, "") // text = regexp.MustCompile(`&#\d+;`).ReplaceAllString(text, "")
return text return text
} }