diff --git a/requirements.txt b/requirements.txt index f98631c..ec32b0e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,16 @@ -appdirs~=1.4.4 -beautifulsoup4~=4.11.1 -bleach~=5.0.1 -CacheControl~=0.12.11 -funcy~=1.17 -lxml~=4.9.1 -requests~=2.28.1 -setuptools~=65.5.0 \ No newline at end of file +appdirs==1.4.4 +beautifulsoup4==4.12.2 +bleach==6.0.0 +CacheControl==0.13.1 +certifi==2023.7.22 +charset-normalizer==3.2.0 +filelock==3.12.3 +funcy==2.0 +idna==3.4 +lxml==4.9.3 +msgpack==1.0.5 +requests==2.31.0 +six==1.16.0 +soupsieve==2.4.1 +urllib3==2.0.4 +webencodings==0.5.1 diff --git a/src/any2rss/html_cleanup.py b/src/any2rss/html_cleanup.py index 1972854..3a0d5e6 100644 --- a/src/any2rss/html_cleanup.py +++ b/src/any2rss/html_cleanup.py @@ -8,8 +8,7 @@ from .api import HTML _cleaner = bleach.sanitizer.Cleaner( - tags=bleach.sanitizer.ALLOWED_TAGS - + ["img", "div", "h1", "h2", "h3", "h4", "h5", "p", "br"], + tags=bleach.sanitizer.ALLOWED_TAGS.union(["img", "div", "h1", "h2", "h3", "h4", "h5", "p", "br"]), attributes=bleach.sanitizer.ALLOWED_ATTRIBUTES | {"img": ["src"]}, )