MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / getText

Method getText

thirdparty/beautifulsoup/beautifulsoup.py:593–603  ·  view source on GitHub ↗
(self, separator=u"")

Source from the content-addressed store, hash-verified

591 string = property(getString, setString)
592
593 def getText(self, separator=u""):
594 if not len(self.contents):
595 return u""
596 stopNode = self._lastRecursiveChild().next
597 strings = []
598 current = self.contents[0]
599 while current and current is not stopNode:
600 if isinstance(current, NavigableString):
601 strings.append(current.strip())
602 current = current.next
603 return separator.join(strings)
604
605 text = property(getText)
606

Callers

nothing calls this directly

Calls 2

_lastRecursiveChildMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected