Skip to content

Commit

Permalink
Fix for newer libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed Aug 28, 2023
1 parent 06efcde commit 25c7c51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
24 changes: 16 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
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
3 changes: 1 addition & 2 deletions src/any2rss/html_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]},
)

Expand Down

0 comments on commit 25c7c51

Please sign in to comment.