mirror of
https://github.com/PaiGramTeam/FixMiYouShe.git
synced 2024-11-25 09:27:45 +00:00
🐛 Fix img tag
This commit is contained in:
parent
d6d592cdcf
commit
53b69b7c81
@ -1,6 +1,6 @@
|
||||
httpx==0.24.1
|
||||
fastapi~=0.101.1
|
||||
starlette~=0.31.0
|
||||
starlette
|
||||
uvicorn~=0.23.2
|
||||
pydantic
|
||||
python-dotenv
|
||||
|
@ -46,7 +46,7 @@ def parse_tag(tag: Union[Tag, PageElement]) -> str:
|
||||
if href and href.startswith("http"):
|
||||
return f'<a href="{href}">{tag.get_text()}</a>'
|
||||
elif tag.name == "img":
|
||||
return f"<p>{str(tag)}</p>"
|
||||
return str(tag)
|
||||
elif tag.name == "p":
|
||||
t = tag.get_text()
|
||||
if not t:
|
||||
|
Loading…
Reference in New Issue
Block a user