django-bleachfields is a Python module that utilizes existing bleach and HTML parser modules to remove HTML tags and unescape text from a field before saving it to a Django model. To use, simply call BleachJSONField or BleachTextField in place of a Django text field, such as models.TextField or models.CharField.
Install
pip install bleachfields
Usage
from django.db import models
from bleachfields import BleachJSONField, BleachTextField
class Person(models.Model):
name = BleachTextField(max_length=256)
response = BleachJSONField()
Contact
Email: afrancis@betterworks.com
Changes
None to date.
Metadata
Release files for bleachfields 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bleachfields-1.0.6.tar.gz | 2.4 kB | Without provenance | Details |
Release files / bleachfields-1.0.6.tar.gz
| Download URL | bleachfields-1.0.6.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ded834ad0e5361a622bfe3182ccfccedd559ace5da642cb62ba96bd97720b3e
|
|
BLAKE2b-256 checksum How to use checksums |
15dd91c487e63bad5dab7bc04324234919f9ebc563399b4c3782bfae1a32b074
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bleachfields 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.