import html


def sanitize_content(content: str, /) -> str:
    """
    Sanitize paste content to prevent XSS attacks.

    Parameter
    ---------
    content: `str`
        Content to be sanitized.

    Returns
    -------
    sanitized : `str`
        Same string containing the html entities encoded.
    """
    return html.escape(content)