- Timestamp:
- Aug 9, 2009, 8:08:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/templates/functions.mako
r2406 r2416 44 44 def jquote(string): 45 45 return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" 46 47 def nl2br(string): 48 return string.replace('\n', '<br/>') 46 49 %> 47 50
Note: See TracChangeset
for help on using the changeset viewer.