code: def escape(data):
      data = tostr(data, "utf_8")
      data = data.replace("&", "&amp;")
      data = data.replace("<", "&lt;")
      data = data.replace(">", "&gt;")
      data = data.replace("\r", "&#13;")
      return data
  
imports: from fontTools.misc.textTools import byteord, strjoin, tobytes, tostr
  import sys
  import os
  import string
label_desc: Use image node_id 1 for calling a global function with example usage: escape(data) and returns: data