code: def _escape_jid(jid):
      '''
      Do proper formatting of the jid
      '''
      jid = six.text_type(jid)
      jid = re.sub(r"'*", "", jid)
      return jif _escape_jid(jid):
      '''
      Do proper formatting of the jid
      '''
      jid = six.text_type(jid)
      jid = re.sub(r"'*", "", jid)
      return jid
docs: Do proper formatting of the jid