mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -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
|
||||
else:
|
||||
tag = tag.extract()
|
||||
else:
|
||||
tag = tag.extract()
|
||||
|
||||
if title_found:
|
||||
result = soup.text
|
||||
|
|
Loading…
Add table
Reference in a new issue