mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-21 01:52:35 +08:00
正确解决了一些系统消息还存在xml的问题
This commit is contained in:
parent
b8660c11b4
commit
d6ed1396e6
@ -420,8 +420,8 @@ class ChildThread(QThread):
|
||||
str_time = message[8]
|
||||
timestamp = message[5]
|
||||
is_chatroom = 1 if self.contact.is_chatroom else 0
|
||||
str_content = str_content.lstrip('<![CDATA[').rstrip(' <a href="weixin://revoke_edit_click">重新编辑</a>]]>')
|
||||
res = findall('(</{0,1}(img|revokemsg|_wc_cus|a).*?>)', str_content)
|
||||
str_content = str_content.replace('<![CDATA[', "").replace(' <a href="weixin://revoke_edit_click">重新编辑</a>]]>', "")
|
||||
res = findall('(</{0,1}(img|revo|_wc_cus|a).*?>)', str_content)
|
||||
for xmlstr, b in res:
|
||||
str_content = str_content.replace(xmlstr, "")
|
||||
str_content = escape_js_and_html(str_content)
|
||||
|
Loading…
Reference in New Issue
Block a user