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.1.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for xss_shield-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5156f0b8625a79955c8cd7720c0a0b2e384bb276b61763151e4b8453ea781583 |
|
MD5 | ed7f49d8015a6b219df2cd12ca01100c |
|
BLAKE2b-256 | 8e82e17efab4034dfe6eaf21e72505c5a78bea0c8b8f681c4df4707ed3973054 |