from bs4 import BeautifulSoup


def strip_anchor_from_id(soup: BeautifulSoup) -> BeautifulSoup:
    """
    Loop through every id anchor and strip it, without editing content.

    Strip <id> attributes such as
        <h2 class="centrat2" id="aid-F8901">A</h2>
    Args:
        soup (BeautifulSoup): A BeautifulSoup object
    """
    for tag in soup.find_all(attrs={'id':True}):
        del tag['id']
    return soup