Django templating system provides a few options (filters) for escaping contents in the html, but they are kind of confusing to me as a beginner. Say I'm following a tutorial to make a simple blog, and the blog content needs to be escaped - I trust the content because I am the only one editing it. So the question is should I do it like {{ post.content|autoescape }}
, {{ post.content|escape }}
, or {{ post.content|safe }}
in the html?
Thanks
EDIT: Which filter should I use to have special characters converted to html entities automatically?
EDIT 2: I just realized that autoescape is not a valid filter.