mirror of
https://github.com/PaiGramTeam/FixMiYouShe.git
synced 2024-11-21 23:18:03 +00:00
fix: ql-image-mask extra div
This commit is contained in:
parent
25be4747c7
commit
ea26dddbde
@ -91,6 +91,8 @@ def parse_tag(tag: Union[Tag, PageElement], post_info: PostInfo) -> str:
|
||||
elif tag.name == "div":
|
||||
post_text = []
|
||||
for tag_ in tag.children:
|
||||
if isinstance(tag_, Tag) and tag_.name == "div" and "ql-image-mask" in tag_["class"]:
|
||||
continue
|
||||
if text := parse_tag(tag_, post_info):
|
||||
post_text.append(text)
|
||||
return "\n".join(post_text)
|
||||
|
Loading…
Reference in New Issue
Block a user