Skip to main content

A library used to stop your website from being attacked.

Project description

xss-shield

A Python library to prevent your website from being attacked.

PyPI GitHub Docs

PyPI - Downloads PyPI - Python Version PyPI - Wheel GitHub top language Documentation Status

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


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 details)

Uploaded Source

Built Distribution

xss_shield-1.2.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file xss_shield-1.2.1.tar.gz.

File metadata

  • Download URL: xss_shield-1.2.1.tar.gz
  • Upload date:
  • Size: 60.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for xss_shield-1.2.1.tar.gz
Algorithm Hash digest
SHA256 627d5e0e56db6fb46b8dfed5c583002a2e311fc498d2d53ec5f65ffb60171b0d
MD5 7ebb21876bff71a4bf30b8a92f832edf
BLAKE2b-256 b3dd12253f95484fb7421c5c27b4774e5f280852e00386d369a01f03746454a0

See more details on using hashes here.

File details

Details for the file xss_shield-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: xss_shield-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for xss_shield-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93251a941995ce405742dd2876f118d146dd110535ea39519158a6eb1c9bb4af
MD5 18aec3512568d36630d37c3ec0288d06
BLAKE2b-256 af66e614e7f28dbf7ea8ca8b2f42318813d52c450c82d66785fb9baafc75e998

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page