I have a form with a jwysiwyg editor. Looking at it, it can use basic-formatting html tags using the formatting buttons like SO's. Upon submitting the form, I notice its saved into the database as-is, whereas if I enter stuff like <iframe> ... </iframe> into the editor I notice that it is html-encoded inside the table.
Now, when I need to output whatever the user has submitted, can I safely use {{ output|safe }} to display the formatted text?
Is this reasonably secure enough or how should I rectify?