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 /pylint.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 'pylint.toml')
-rw-r--r-- | pylint.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint.toml b/pylint.toml index c939cdc..3f011cb 100644 --- a/pylint.toml +++ b/pylint.toml @@ -17,7 +17,7 @@ # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code. (This is an alternative name to extension-pkg-allow-list # for backward compatibility.) -extension-pkg-whitelist = ["pydantic"] +extension-pkg-whitelist = ["pydantic", "nh3"] # Return non-zero exit code if any of these messages/categories are detected, # even if score is above --fail-under value. Syntax same as enable. Messages |