Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 3322521cd6b827f91e776691475e5c2dce4078dd 1 parent bdb0b90
@malcolmt malcolmt authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/flatpages.txt
View
7 docs/flatpages.txt
@@ -113,3 +113,10 @@ Here's a sample ``flatpages/default.html`` template::
{{ flatpage.content }}
</body>
</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
+
Please sign in to comment.
Something went wrong with that request. Please try again.