def filter_post_edits(dict_elem):
    """
    Filter post history events that modified the body of the posts.
    :param dict_elem: dict with parsed XML attributes
    :return: boolean indicating whether element modified the body of the corresponding post
    """
    return int(dict_elem['PostHistoryTypeId']) in [2, 5, 8]