Skip to content

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.

License

Notifications You must be signed in to change notification settings

BetterWorks/django-bleachfields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-bleachfields

https://travis-ci.org/BetterWorks/django-bleachfields.png

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: [email protected]

Changes

None to date.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

Languages