bs4.BeautifulSoup.strings

BeautifulSoup.strings

Yield all strings of certain classes, possibly stripping them.

By default, yields only NavigableString and CData objects. So no comments, processing instructions, etc.