fix: normalize unicode escape sequences and reformat multi-line expressions across codebase
This commit is contained in:
@@ -94,7 +94,11 @@ class FetchController:
|
||||
|
||||
body, final_url, content_type, status = await self._download(url)
|
||||
|
||||
if "html" in content_type or "xml" in content_type or content_type.startswith("text/"):
|
||||
if (
|
||||
"html" in content_type
|
||||
or "xml" in content_type
|
||||
or content_type.startswith("text/")
|
||||
):
|
||||
title_match = TITLE.search(body)
|
||||
title = html_to_text(title_match.group(1)) if title_match else ""
|
||||
content = html_to_text(body)
|
||||
|
||||
Reference in New Issue
Block a user