Skip to main content

Ammonia HTML sanitizer Python binding

Project description

nh3

CI PyPI

ammonia Python binding.

Installation

pip install nh3

Usage

import nh3

print(nh3.clean("<b><img src=\"\">I'm not trying to XSS you</b>"))

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

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

nh3-0.2.2.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distributions

nh3-0.2.2-cp37-abi3-win_amd64.whl (551.6 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.2-cp37-abi3-win32.whl (550.0 kB view hashes)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.2-cp37-abi3-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

nh3-0.2.2-cp37-abi3-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

nh3-0.2.2-cp37-abi3-musllinux_1_2_armv7l.whl (1.8 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

nh3-0.2.2-cp37-abi3-musllinux_1_2_aarch64.whl (1.8 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

nh3-0.2.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

nh3-0.2.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.7 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

nh3-0.2.2-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.8 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64

nh3-0.2.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.6 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

nh3-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

nh3-0.2.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

nh3-0.2.2-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.4 MB view hashes)

Uploaded CPython 3.7+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

nh3-0.2.2-cp37-abi3-macosx_10_7_x86_64.whl (702.0 kB view hashes)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

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