Do a global encoding of a string, replacing the predefined
          entities this routine is reentrant, and result must be
           deallocated.

def encodeSpecialChars(self, input):
        """Do a global encoding of a string, replacing the predefined
          entities this routine is reentrant, and result must be
           deallocated. """
        ret = libxml2mod.xmlEncodeSpecialChars(self._o, input)
        return ret