Remove HTML elements from first paragraph when forming microblog title

This commit is contained in:
freamon 2024-04-11 05:00:20 +01:00
parent 3a0c72d6d4
commit d7bee348b3

View file

@ -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