import html


def sanitize_for_html(string: str) -> str:
    """
    Prepares a string for usage in an html/xml environment.
    Escapes strings for html.
    :param string: The string to sanitize.
    :return: The sanitized string.
    """
    return html.escape(string.replace("&", "&amp;"))