import re


def sanitizeField(s: str) -> str:
    """Remove comments and some other markup, get first line if many."""
    s = re.sub(r'<ref>.*</ref>', '', s)
    s = re.sub(r'<!--.*-->', '', s)
    s = re.sub(r'<br\s*/?>.*', '', s)
    match = re.search(r'{{\s*lang\|\s*en\s*\|([^}]*)}}', s)
    if match:
        s = match.group(1)
    return s.strip()