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.2.tar.gz (61.0 kB view details)

Uploaded Source

Built Distribution

xss_shield-1.2.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xss_shield-1.2.2.tar.gz
Algorithm Hash digest
SHA256 80345ebe13833f1d2433727d812f83217c7738507fe6ef41872a57272a426b53
MD5 22691ac2e01a4cdcc87dfce6de39075c
BLAKE2b-256 21a121d54be3f93c840a921f659ed30a4a839fc33f46607bf02bfe1cb2210551

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xss_shield-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 feadd1386f3e615527e45b8c876cfa0ca915b8fdffd341601e856b5a0e1bb401
MD5 ef9ecbfa6cfb306a209a15a54ab0e20f
BLAKE2b-256 e58587c253d1410ee2e12167f33745b8f0589800c9c9918662a60abd47911706

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