code: def _join_inlines(self, soup):
          
          elements = soup.find_all(True)
          for elem in elements:
              if self._inline(elem):
                  elem.unwrap()
          return soup
docs: Unwraps inline elements defined in self._inline_tags.