MCPcopy Index your code
hub / github.com/csev/py4e / new_string

Method new_string

code3/bs4/__init__.py:259–261  ·  view source on GitHub ↗

Create a new NavigableString associated with this soup.

(self, s, subclass=NavigableString)

Source from the content-addressed store, hash-verified

257 return Tag(None, self.builder, name, namespace, nsprefix, attrs)
258
259 def new_string(self, s, subclass=NavigableString):
260 """Create a new NavigableString associated with this soup."""
261 return subclass(s)
262
263 def insert_before(self, successor):
264 raise NotImplementedError("BeautifulSoup objects don't support insert_before().")

Calls

no outgoing calls