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.3.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file xss_shield-1.1.3.tar.gz
.
File metadata
- Download URL: xss_shield-1.1.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed56c35c62186bcb3a948882527013748ac4bf69cf714c0030a23642ad83a94b |
|
MD5 | 2218e56784f263a1353a5ff65493901b |
|
BLAKE2b-256 | adad0fbc515f362ed4e012cec576498ab526301c9b1aa17abadbb981faa4abb4 |
File details
Details for the file xss_shield-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: xss_shield-1.1.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12accf887c5ae04899ce4b9d0285021a2b36c7e0de45402ae0c44e9f092df71c |
|
MD5 | 603c5df6342ad0838aa065e8b780688e |
|
BLAKE2b-256 | 85807de5ed668968dd06e24edfe644cd00a385d66d21857b9a4b5196a9e6b0e9 |