Metadata-Version: 2.1
Name: purehtml
Version: 0.2.1
Summary: Purify HTML by filtering tags and classes
Author: Hansimov
Project-URL: Homepage, https://github.com/Hansimov/pure-html
Project-URL: Issues, https://github.com/Hansimov/pure-html/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tclogger
Requires-Dist: beautifulsoup4
Requires-Dist: markdownify

# PureHTML
Purify HTML by filtering tags and classes

## Install

```sh
pip install --upgrade purehtml
```

## Usage

```python
from purehtml import purify_html_files
from pathlib import Path

html_root = Path(__file__).parent / "samples"
html_paths = list(html_root.glob("*.html"))
html_path_and_purified_content_list = purify_html_files(html_paths)
for item in html_path_and_purified_content_list:
    html_path = item["html_path"]
    purified_content = item["purified_content"]
    print(html_path)
    print(purified_content)
```
