def METHOD_NAME(self, content):
    if content:
        self._finish_pending_start_element()
        if isinstance(content, SafeString):
            self._write("<![CDATA[{}]]>".format(content))
        else:
            if not isinstance(content, str):
                content = str(content, self._encoding)
            self._write(escape(content))