正确解决了一些系统消息还存在xml的问题

This commit is contained in:
STDquantum 2023-12-17 22:09:44 +08:00
parent b8660c11b4
commit d6ed1396e6

View File

@ -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)