From 0462e9f2b3c55c7aeb49fa204be0ad60be21d1ed Mon Sep 17 00:00:00 2001 From: g1879 Date: Fri, 13 Nov 2020 00:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtext=E4=B8=BANone=E6=97=B6for?= =?UTF-8?q?mat=5Fhtml()=E5=87=BD=E6=95=B0=E5=87=BA=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrissionPage/common.py b/DrissionPage/common.py index 01b1728..eef3eca 100644 --- a/DrissionPage/common.py +++ b/DrissionPage/common.py @@ -184,7 +184,7 @@ def _make_search_str(search_str: str) -> str: def format_html(text: str) -> str: - return unescape(text).replace('\xa0', ' ') + return unescape(text).replace('\xa0', ' ') if text else text def translate_loc(loc: tuple) -> tuple: