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)