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.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for xss_shield-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a515eaafeea816b0022d6ff73b6b5934e07b4c88c939f96c42828e6ca7deb8d |
|
MD5 | 1d367e419c4bd405b3070e6cb2f30f32 |
|
BLAKE2b-256 | 7cae252b55d8c4fe8e5c5312f299a001879262f8ce20af4cc8154e21d24c0d0b |