def cleanContents(contents):
    """
    Cleans the contents of a file so that it no longer contains all the html tags and jargon

    :param contents: String containing the contents of a files
    :return: String of contents that no longer has html tags and jargon
    """

    # gets rid of anything that is not in the body
    bodystart = contents.index('<body>') + 6
    bodyend = contents.index('</body>')
    ret = contents[bodystart:bodyend]

    # gets rid of anything that is not in the pre
    if ret.index("<pre>") != -1:
        retstart = ret.index('<pre>') + 5
        retend = ret.index('</pre>')
        ret = ret[retstart:retend]
    return ret