diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-04-13 20:46:04 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-04-13 20:46:04 +0200 |
commit | c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0 (patch) | |
tree | 6da4cd78a287e4cb615dbad518fb43df81aae9a9 /pyproject.toml | |
parent | be05f4d4e1729714ffb4c3c37b5dcedcd7c79c26 (diff) | |
download | fietsboek-c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0.tar.gz fietsboek-c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0.tar.bz2 fietsboek-c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0.zip |
replace bleach with nh3
See https://github.com/mozilla/bleach/issues/698
nh3 is a small wrapper around https://crates.io/crates/ammonia - more
Rust code in Fietsboek! \o/
The default seems to be to strip unknown tags instead of replace them
with htmlentities, which is fine. Then the <script> tags are completely
gone.
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml index e38f8aa..555b72c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ Babel = "^2.11" cryptography = "^39" gpxpy = "^1.5" markdown = "^3.4" -bleach = "^6" +nh3 = "^0.2.9" Click = "^8.1" requests = "^2.28.1" @@ -84,7 +84,6 @@ optional = true mypy = "^1.1" types-markdown = "^3.4.2.1" types-requests = "^2.28.11.5" -types-bleach = "^6" types-babel = "^2.11.0.7" types-redis = "^4.3.21.6" |