(self, whitespace=True)
return text
\
        Strip brackets, tags, and attributes from inner text

        Arguments:

        - whitespace: remove extra whitespace characters

        Example:

        ```
        html = "<span>AB<b>C</b>D</span>"
        soup = Soup(html)
        soup.find("span").text
        # AB
        soup.strip()
        # ABCD
        ```
\
        Strip brackets, tags, and attributes from inner text
\ Strip brackets tags and attributes from inner text
def strip(self, whitespace=True):
        """\
        Strip brackets, tags, and attributes from inner text

        Arguments:

        - whitespace: remove extra whitespace characters

        Example:

        ```
        html = "<span>AB<b>C</b>D</span>"
        soup = Soup(html)
        soup.find("span").text
        # AB
        soup.strip()
        # ABCD
        ```
        """
        text = re.sub("<[^>]+>", "", self._html)
        if whitespace:
            text = " ".join(text.split())
        return text
def strip ( self , whitespace = True ) : text = re . sub ( "<[^>]+>" , "" , self . _html ) if whitespace : text = " " . join ( text . split ( ) ) return text