Author: mtredinnick
Date: 2007-11-14 15:30:18 -0600 (Wed, 14 Nov 2007)
New Revision: 6674
Modified:
django/trunk/docs/flatpages.txt
Log:
Documented the time-saver in flatpages: title and content are marked as safe
strings.
Modified: django/trunk/docs/flatpages.txt
===================================================================
--- django/trunk/docs/flatpages.txt 2007-11-14 21:07:27 UTC (rev 6673)
+++ django/trunk/docs/flatpages.txt 2007-11-14 21:30:18 UTC (rev 6674)
@@ -113,3 +113,10 @@
{{ 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
+
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---