(fields)
return stripped_fields
Uses BeautifulSoup to remove STRIP_TAGS from each string in
    supplied list.

    Parameters
    ----------
    fields : list of strings
        list containing html of field contents
    Returns
    -------
    stripped_fields : list of strings
        processed list of fields
Uses BeautifulSoup to remove STRIP_TAGS from each string in
    supplied list.
Uses BeautifulSoup to remove STRIP_TAGS from each string in supplied list .
def stripFormatting(fields):
    """
    Uses BeautifulSoup to remove STRIP_TAGS from each string in
    supplied list.

    Parameters
    ----------
    fields : list of strings
        list containing html of field contents
    Returns
    -------
    stripped_fields : list of strings
        processed list of fields
    """

    stripped_fields = []

    for html in fields:
        soup = BeautifulSoup(html, "html.parser")
        for tag in STRIP_TAGS:
            for match in soup.findAll(tag):
                match.replaceWithChildren()
        text = str(soup) if ANKI21 else unicode(soup)
        stripped_fields.append(text)

    return stripped_fields
def stripFormatting ( fields ) : stripped_fields = [ ] for html in fields : soup = BeautifulSoup ( html , "html.parser" ) for tag in STRIP_TAGS : for match in soup . findAll ( tag ) : match . replaceWithChildren ( ) text = str ( soup ) if ANKI21 else unicode ( soup ) stripped_fields . append ( text ) return stripped_fields