(self, txt)
return txt
basic html escaping
basic html escaping
basic html escaping
def _escape(self, txt):
        """ basic html escaping """
        txt = txt.replace('&', '&amp;')
        txt = txt.replace('<', '&lt;')
        txt = txt.replace('>', '&gt;')
        txt = txt.replace('"', '&quot;')
        return txt
def _escape ( self , txt ) : txt = txt . replace ( '&' , '&amp;' ) txt = txt . replace ( '<' , '&lt;' ) txt = txt . replace ( '>' , '&gt;' ) txt = txt . replace ( '"' , '&quot;' ) return txt