def escape(t: str) -> str:
    """HTML-escape the text in `t`.

    This is only suitable for HTML text, not attributes.

    """
    # Convert HTML special chars into HTML entities.
    return t.replace("&", "&amp;").replace("<", "&lt;")
HTML-escape the text in `t`.

    This is only suitable for HTML text, not attributes.

    
coverage/html.py