jamesturk / django-markupfield

📑 a MarkupField for Django

Home Page:http://pypi.python.org/pypi/django-markupfield

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

disallow html

marmalodak opened this issue · comments

Is it safe to put this in my settings.py?

MARKUP_FIELD_TYPES = tuple( i for i in markup.DEFAULT_MARKUP_TYPES if i[0].lower() != 'html' )

should be fine. you can also look at the definition of the markup types and copy them over to your project, either way