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)
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.0.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for xss_shield-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8413e50575f1fef3a167355b8825bf64db1b025c888944f5f5cd4405a0d7b8 |
|
MD5 | 85863bffc45f2ee7ae1628ad0bdd2c3d |
|
BLAKE2b-256 | 6f9571e23c83f1f252f9b053f2a0663214526574f23882744f2849f1344b2c20 |