def sanitize(name):
    """
    Sanitize the specified ``name`` for use with breathe directives.

    **Parameters**

    ``name`` (:class:`python:str`)
        The name to be sanitized.

    **Return**

    :class:`python:str`
        The input ``name`` sanitized to use with breathe directives (primarily for use
        with ``.. doxygenfunction::``).  Replacements such as ``"&lt;" -> "<"`` are
        performed, as well as removing spaces ``"< " -> "<"`` must be done.  Breathe is
        particularly sensitive with respect to whitespace.
    """
    return name.replace(
        "&lt;", "<"
    ).replace(
        "&gt;", ">"
    ).replace(
        "&amp;", "&"
    ).replace(
        "< ", "<"
    ).replace(
        " >", ">"
    ).replace(
        " &", "&"
    ).replace(
        "& ", "&"
    )