def _Replacement_write_data(writer, data, is_attrib=False):
  data = data.replace("&", "&amp;").replace("<", "&lt;")
  data = data.replace("\"", "&quot;").replace(">", "&gt;")
  if is_attrib:
    data = data.replace(
        "\r", "&#xD;").replace(
        "\n", "&#xA;").replace(
        "\t", "&#x9;")
  writer.write(data)
Writes datachars to writer.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xml_fix.py/_Replacement_write_data