We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2785e1a commit 9ddc977Copy full SHA for 9ddc977
1 file changed
app/agents/voice/automatic/tools/breeze/utils.py
@@ -204,9 +204,9 @@ def remove_html_tags(html_text: str) -> str:
204
# Find everything between <div>...</div>
205
match = re.search(r"<div.*?>(.*?)</div>", html_text, flags=re.DOTALL)
206
207
- if not match:
208
- return ""
209
-
210
- content = match.group(1)
+ if match:
+ content = match.group(1)
+ else:
+ content = html_text
211
clean_text = re.sub(r"<[^>]*>", "", content).strip()
212
return clean_text
0 commit comments