def data_out(self, text=None, **kwargs):
        # string handling is similar to telnet
        try:
            text = utils.to_str(text if text else "", encoding=self.encoding)
            raw = kwargs.get("raw", False)
            nomarkup = kwargs.get("nomarkup", False)
            if raw:
                self.client.lineSend(self.suid, text)
            else:
                self.client.lineSend(self.suid,
                                     parse_html(text, strip_ansi=nomarkup))
            return
        except Exception:
            logger.log_trace()
Data Evennia -> User access hook.
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/webclient.py/WebClientSession.data_out