victorafarias commited on
Commit
b6672f0
·
1 Parent(s): c03c193

Correções no novo método de conversão dos textos para .md

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: &nbsp; 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: &nbsp; para ' ')
48
  decoded_text = unescape(text_only)