1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00
acronomy/acros/utils/html.py

10 lines
198 B
Python
Raw Normal View History

2020-07-18 21:59:42 +02:00
from bs4 import BeautifulSoup
def clean_html(html: str) -> str:
return BeautifulSoup(html, "html.parser").text
def string_to_bool(string: str) -> bool:
return string.lower() in ["true"]