mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
Remove HTML elements from first paragraph when forming microblog title
This commit is contained in:
parent
3a0c72d6d4
commit
d7bee348b3
1 changed files with 2 additions and 0 deletions
|
@ -244,6 +244,8 @@ def microblog_content_to_title(html: str) -> str:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
tag = tag.extract()
|
tag = tag.extract()
|
||||||
|
else:
|
||||||
|
tag = tag.extract()
|
||||||
|
|
||||||
if title_found:
|
if title_found:
|
||||||
result = soup.text
|
result = soup.text
|
||||||
|
|
Loading…
Add table
Reference in a new issue