def METHOD_NAME(self, data):
    # Escape XML characters in data sections of tags.  Note, this
    # is different from _escape_attributes() in that double quotes
    # are not escaped by Excel.
    try:
        if not self.escapes.search(data):
            return data
    except TypeError:
        return data
    data = data.replace('&', '&amp;')
    data = data.replace('<', '&lt;')
    data = data.replace('>', '&gt;')
    return data