2👍
✅
I recommend using the bleach python library, it is designed to handle all sorts of special cases and be a complete solution for your problem
0👍
Might I suggest a prebuilt solution for django https://www.djangopackages.com/grids/g/forms/
Most have some form of filter examples included. I am actually looking into TinyMCE myself.
More info is here Using safe filter in Django for rich text fields
- [Answered ]-Invalid literal for int() with base 10: '' -> not understanding what this error means in my project
- [Answered ]-Python Django prevent duplicate in Many-to-many fields
- [Answered ]-Django | Auto Escape On / Off | Single Quotes | JSON
- [Answered ]-Justifying Non-Standard Python 3 MySQL Connector Use
- [Answered ]-Getting Error with Django Phone Number Form Field
Source:stackexchange.com