fix: clean html tag stripping regex

This commit is contained in:
mamad
2026-08-28 22:08:03 +03:30
parent ab9489dd99
commit 8ccecfe699
+1 -1
View File
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
def _clean_html(raw_html: str) -> str:
if not raw_html:
return ""
text = re.sub(r'<[^>]+>', ' ', raw_html)
text = re.sub(r'<[^>]+>', '', raw_html)
text = html.unescape(text)
return re.sub(r'\s+', ' ', text).strip()