def html_escape(t):
    """Convert special HTML characters ('&', '<', '>', '"', "'") in string to HTML-safe sequences.

    >>> html_escape('<>"&')
    '&lt;&gt;&quot;&amp;'
    >>>
    """
    html_escape_table = {
        "&": "&amp;",
        '"': "&quot;",
        "'": "&#039;",
        ">": "&gt;",
        "<": "&lt;",
    }

    return "".join(html_escape_table.get(c, c) for c in t)