This commit is contained in:
Biskweet 2024-12-28 03:17:04 +01:00
commit 06cb54259d

View file

@ -113,6 +113,10 @@ def retrieve_url(url: str, custom_headers: Mapping[str, Any] = {}, request_data:
pass
dataStr = data.decode(charset, 'replace')
# better do it here than in htmlentitydecode which shouldn't make specific exceptions in its task
dataStr = dataStr.replace('"', '\\"')
dataStr = htmlentitydecode(dataStr)
return dataStr