A library used to stop your website from being attacked.
Project description
xss-shield
A Python library to prevent your website from being attacked.
Installing
Type command:
$ pip install xss-shield
Usage
Function excape(s: str, strict=True)
Arguments
s: the string to parse
strict: if strict = False -> only replace
<script>
tag
example:
import xss_shield
unsafe_str = '<script>alert("Bad.");</script>'
safe_str = xss_shield.escape(unsafe_str)
Docs
The docs are availible here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xss_shield-1.2.1.tar.gz
(60.9 kB
view hashes)
Built Distribution
Close
Hashes for xss_shield-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93251a941995ce405742dd2876f118d146dd110535ea39519158a6eb1c9bb4af |
|
MD5 | 18aec3512568d36630d37c3ec0288d06 |
|
BLAKE2b-256 | af66e614e7f28dbf7ea8ca8b2f42318813d52c450c82d66785fb9baafc75e998 |