diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-14 21:30:18 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-14 21:30:18 +0000 |
| commit | 3322521cd6b827f91e776691475e5c2dce4078dd (patch) | |
| tree | 2ed14d5b3a0b2d4f62bc890a6e569ed5e68f3791 /docs | |
| parent | bdb0b903c2885a3f4b7f0282b8ba04267a1fc29e (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/flatpages.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/flatpages.txt b/docs/flatpages.txt index d082090689..7c27fe8793 100644 --- a/docs/flatpages.txt +++ b/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 + |
