Changeset 1319

Show
Ignore:
Timestamp:
12/03/07 16:35:06 (2 years ago)
Author:
JensDiemer
Message:

use PyLucid escaping method... So you can put this into you CMS page: =={{ PAGE.get_absolute_uri }}== to diplay the command escaped.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/system/tinyTextile.py

    r1301 r1319  
    2828__version__ = "$Rev$" 
    2929 
    30 import sys, re, cgi 
     30import sys, re 
     31from PyLucid.tools.utils import escape 
    3132from PyLucid.system.response import SimpleStringIO 
    3233 
     
    153154 
    154155    def escaping(self, matchobj): 
    155         return cgi.escape(matchobj.group(1)) 
     156        return escape(matchobj.group(1)) 
    156157 
    157158    def shortcutLink(self, matchobj):