Esempio n. 1
0
 def _escape_content(self, content):
     return html_escape(unic(content))
 def content(self, content=None, escape=True):
     """Given content doesn't need to be a string"""
     if content is not None:
         if escape:
             content = html_escape(unic(content))
         self._write(content)
Esempio n. 3
0
 def _escape_content(self, content):
     return html_escape(unic(content))