'Gets rid of all tags and newline characters from the given input
:return: A cleaned-up version of the input string
:rtype: str'

def _strip_tags(self, data):

    try:
        u"\n                                                #    Look    for    boundary    issues    in    markup.    (Sometimes    FEs    are    pluralized    in    definitions.)\n                                                m    =    re.search(r'\\w[<][^/]|[<][/][^>]+[>](s\\w|[a-rt-z0-9])',    data)\n                                                if    m:\n                                                                print('Markup    boundary:',    data[max(0,m.start(0)-10):m.end(0)+10].replace('\n','    '),    file=sys.stderr)\n                                                "
        data = data.replace(u'<t>', u'')
        data = data.replace(u'</t>', u'')
        data = re.sub(u'<fex    name="[^"]+">', u'', data)
        data = data.replace(u'</fex>', u'')
        data = data.replace(u'<fen>', u'')
        data = data.replace(u'</fen>', u'')
        data = data.replace(u'<m>', u'')
        data = data.replace(u'</m>', u'')
        data = data.replace(u'<ment>', u'')
        data = data.replace(u'</ment>', u'')
        data = data.replace(u'<ex>', u"'")
        data = data.replace(u'</ex>', u"'")
        data = data.replace(u'<gov>', u'')
        data = data.replace(u'</gov>', u'')
        data = data.replace(u'<x>', u'')
        data = data.replace(u'</x>', u'')
        data = data.replace(u'<def-root>', u'')
        data = data.replace(u'</def-root>', u'')
        data = data.replace(u'\n', u'    ')
    except AttributeError:
        pass
    return data
