I am using Markdown in an app to display a user biography. I want the user to be able to slightly format the biography, so I\'m letting them use the TinyMCE editor.
Markdown in safe mode would remove all html tags, which means your users cannot input HTML segments in the biography. In some cases, this is not preferable. I would recommend you use force_escape before markdown, so anything fed into markdown is safe.
For example, if your biography is I'm really a HTML fan!
, using
{{ biography|markdown:"safe"}}
would produce HTML REMOVED
.. Instead, if you use
{{ biography|force_escape|markdown }}
The output would be something like
<html>I'm really a HTML fan!</html>