/usr/lib64/python2.6/site-packages/Cheetah/Utils
NameSizeModeActions
htmlDecode.py4370644editdlrm
htmlDecode.pyc7620644editdlrm
htmlDecode.pyo7620644editdlrm
htmlEncode.py5080644editdlrm
htmlEncode.pyc8390644editdlrm
htmlEncode.pyo8390644editdlrm
Indenter.py41450644editdlrm
Indenter.pyc56190644editdlrm
Indenter.pyo56190644editdlrm
memcache.py186950644editdlrm
memcache.pyc215760644editdlrm
memcache.pyo215760644editdlrm
Misc.py22420644editdlrm
Misc.pyc28250644editdlrm
Misc.pyo28250644editdlrm
statprof.py101520644editdlrm
statprof.pyc104430644editdlrm
statprof.pyo103420644editdlrm
WebInputMixin.py38690644editdlrm
WebInputMixin.pyc32480644editdlrm
WebInputMixin.pyo32480644editdlrm
__init__.py20644editdlrm
__init__.pyc1470644editdlrm
__init__.pyo1470644editdlrm
Edit: /usr/lib64/python2.6/site-packages/Cheetah/Utils/htmlEncode.py (508B)
"""This is a copy of the htmlEncode function in Webware. @@TR: It implemented more efficiently. """ htmlCodes = [ ['&', '&'], ['<', '<'], ['>', '>'], ['"', '"'], ] htmlCodesReversed = htmlCodes[:] htmlCodesReversed.reverse() def htmlEncode(s, codes=htmlCodes): """ Returns the HTML encoded version of the given string. This is useful to display a plain ASCII text string on a web page.""" for code in codes: s = s.replace(code[0], code[1]) return s