Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read in index.html using beautiful soup, and write out. This automatically fixes some errors like unclosed tags. ```py from bs4 import BeautifulSoup html_file = "index.html" with open(html_file, 'r') as file: html_content = file.read() soup = BeautifulSoup(html_content, 'html.parser') with open(html_file, 'w', encoding="utf-8") as file: file.write(str(soup)) ```
- Loading branch information