Show
Ignore:
Timestamp:
10/16/07 12:36:51 (3 years ago)
Author:
JensDiemer
Message:

escape_django_tags

Files:
1 modified

Legend:

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

    r1259 r1276  
    158158    """ 
    159159    return sax_escape(txt, entities=ENTITIES) 
     160 
     161def escape_django_tags(txt): 
     162    """ 
     163    Escape only "{" and "}". 
     164    """ 
     165    for source, dest in ENTITIES.iteritems(): 
     166        txt = txt.replace(source, dest) 
     167    return txt