import re


def process_string_and_remove_tags(raw_string: str):
    """Removes tags and converts newlines to match ace offsets alignment"""
    raw_string = raw_string.replace('\r\n', '\n')
    return re.sub(r'<[\s\S]*?>', '', raw_string)