def escape(self, obj):
        return escape_item(obj, self.charset)
Escape whatever value you pass to it
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/pymysql/connections.py/Connection.escape