code: def escapeattr(data):
      data = escape(data)
      data = data.replace('"', "&quot;")
      return data
  
imports: from fontTools.misc.textTools import byteord, strjoin, tobytes, tostr
  import sys
  import os
  import string
label_desc: Use image node_id 2 for calling a global function with example usage: escapeattr(data) and returns: data