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