[Answered ]-Python and Django. Remove all js from html

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

http://bleach.readthedocs.org/en/latest/index.html

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

Leave a comment