Changeset 1657
- Timestamp:
- 07/07/08 20:14:00 (21 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/PyLucid/tools/utils.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/tools/utils.py
r1634 r1657 14 14 $Author: $ 15 15 16 :copyleft: 2007 by the PyLucid team, see AUTHORS for more details.16 :copyleft: 2007-2008 by the PyLucid team, see AUTHORS for more details. 17 17 :license: GNU GPL v2 or above, see LICENSE for more details 18 18 """ … … 28 28 29 29 def escape(txt): 30 """ "31 Normal sax escape, but also escape/quote the django template tags chars32 like "{" and "}"to the HTML character entity.30 """ 31 Escape "&", "<", ">" and django template tags chars like "{" and "}" 32 defined in ENTITIES to the HTML character entity. 33 33 """ 34 34 return sax_escape(txt, entities=ENTITIES) … … 36 36 def escape_django_tags(txt): 37 37 """ 38 Escape only "{" and "}". 38 Escape only django template tags chars like "{" and "}" defined in ENTITIES 39 to the HTML character entity. 39 40 """ 40 41 for source, dest in ENTITIES.iteritems():