I have a little problem understanding what an expression like {{ something.render() | safe }} does .
From what I have seen, without the safe keyword it outputs the entire html document, not just the true content.
What I would like to know, is what it actually does, how it functions .
The
safefilter explicitly marks a string as “safe”, i.e., it should not be automatically-escaped if auto-escaping is enabled.The documentation on this filter is here.
See the section on manual escaping to see which characters qualify for escaping.