3 ms·
The best solution here is to just not allow HTML, require all markup to be Markdown. It's not hard to do and is actually a feature in the Python Markdown module
by jonknee 18y ago
The best solution here is to just not allow HTML, require all markup to be Markdown. It's not hard to do and is actually a feature in the Python Markdown module. I had to make a public form Markdown compatible the other day in a Django project, it's brain-dead easy:
{{ foo|markdown:"safe" }}