From 97787fac9184deae441f7577456617643c6ea480 Mon Sep 17 00:00:00 2001 From: fatwang2 Date: Sat, 20 Apr 2024 00:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eurl=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E8=A7=A3=E5=86=B3itchat=E4=B8=AD?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=8D=A1=E7=89=87=E6=97=A0=E6=B3=95=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/linkai/summary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/linkai/summary.py b/plugins/linkai/summary.py index 5711fd9..1f08e85 100644 --- a/plugins/linkai/summary.py +++ b/plugins/linkai/summary.py @@ -2,6 +2,7 @@ import requests from config import conf from common.log import logger import os +import html class LinkSummary: @@ -18,6 +19,7 @@ class LinkSummary: return self._parse_summary_res(res) def summary_url(self, url: str): + url = html.unescape(url) body = { "url": url }