Changeset 1657

Show
Ignore:
Timestamp:
07/07/08 20:14:00 (21 months ago)
Author:
JensDiemer
Message:

change docstrings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/tools/utils.py

    r1634 r1657  
    1414    $Author: $ 
    1515 
    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. 
    1717    :license: GNU GPL v2 or above, see LICENSE for more details 
    1818""" 
     
    2828 
    2929def escape(txt): 
    30     """" 
    31     Normal sax escape, but also escape/quote the django template tags chars 
    32     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. 
    3333    """ 
    3434    return sax_escape(txt, entities=ENTITIES) 
     
    3636def escape_django_tags(txt): 
    3737    """ 
    38     Escape only "{" and "}". 
     38    Escape only django template tags chars like "{" and "}" defined in ENTITIES 
     39    to the HTML character entity. 
    3940    """ 
    4041    for source, dest in ENTITIES.iteritems():