def xssescape(text):

    return escape(text, quote=True).replace(':', '&#58;')
Gets rid of < and > and & and, for good measure, :
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/sanitizer.py/xssescape