Documented the time-saver in flatpages: title and content are marked as safe
strings. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bdb0b903c2
commit
3322521cd6
|
@ -113,3 +113,10 @@ Here's a sample ``flatpages/default.html`` template::
|
||||||
{{ flatpage.content }}
|
{{ flatpage.content }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Since you're already entering raw HTML into the admin page for a flatpage,
|
||||||
|
both ``flatpage.title`` and ``flatpage.content`` are marked as **not**
|
||||||
|
requiring `automatic HTML escaping`_ in the template.
|
||||||
|
|
||||||
|
.. _automatic HTML escaping: ../templates/#automatic-html-escaping
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue