- Timestamp:
- 09/16/08 13:31:56 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/PyLucid/system/markups/creole2html.py
r1766 r1769 58 58 print node 59 59 60 60 from PyLucid.tools.utils import escape 61 61 class HtmlEmitter: 62 62 """ … … 82 82 83 83 def html_escape(self, text): 84 return text.replace('&', '&').replace('<', '<').replace('>', '>') 84 return escape(text) 85 #return text.replace('&', '&').replace('<', '<').replace('>', '>') 85 86 86 87 def attr_escape(self, text): … … 205 206 return u"<pre>\n%s\n</pre>\n" % self.html_escape(node.content) 206 207 207 def passthrough_ emit(self, node):208 def passthrough_block_emit(self, node): 208 209 """ Pass-through all django template blocktags and html code lines """ 209 210 return node.content + "\n" 210 html_emit = passthrough_emit 211 html_emit = passthrough_block_emit 212 213 def passthrough_line_emit(self, node): 214 """ Pass-through all django template tags """ 215 return node.content 211 216 212 217 def default_emit(self, node):