update
This commit is contained in:
@@ -3,6 +3,7 @@ package qq
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -32,6 +33,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, "")
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user