(writer, data)
Writes datachars to writer.
Writes datachars to writer.
Writes datachars to writer .
def _write_data(writer, data):
    "Writes datachars to writer."
    if data:
        data = data.replace("&", "&amp;").replace("<", "&lt;"). \
                    replace("\"", "&quot;").replace(">", "&gt;")
        writer.write(data)
def _write_data ( writer , data ) : if data : data = data . replace ( "&" , "&amp;" ) . replace ( "<" , "&lt;" ) . replace ( "\"" , "&quot;" ) . replace ( ">" , "&gt;" ) writer . write ( data )