Spaces:
Sleeping
Sleeping
Commit
·
b6672f0
1
Parent(s):
c03c193
Correções no novo método de conversão dos textos para .md
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def is_html_empty(html: str) -> bool:
|
|
42 |
"""
|
43 |
if not html:
|
44 |
return True
|
45 |
-
# 1. Remove todas as tags HTML
|
46 |
text_only = re.sub('<[^<]+?>', '', html)
|
47 |
# 2. Decodifica entidades HTML (ex: para ' ')
|
48 |
decoded_text = unescape(text_only)
|
|
|
42 |
"""
|
43 |
if not html:
|
44 |
return True
|
45 |
+
# 1. Remove todas as tags do HTML
|
46 |
text_only = re.sub('<[^<]+?>', '', html)
|
47 |
# 2. Decodifica entidades HTML (ex: para ' ')
|
48 |
decoded_text = unescape(text_only)
|