Public Member Functions | |
def | __getattr__ (self, attr) |
def | __getnewargs__ (self) |
def | __new__ (cls, value) |
def | __str__ (self, encoding=DEFAULT_OUTPUT_ENCODING) |
def | __unicode__ (self) |
Public Member Functions inherited from BeautifulSoup.PageElement | |
def | append (self, tag) |
def | extract (self) |
def | findAllNext (self, name=None, attrs={}, text=None, limit=None, kwargs) |
def | findAllPrevious (self, name=None, attrs={}, text=None, limit=None, kwargs) |
def | findNext (self, name=None, attrs={}, text=None, kwargs) |
def | findNextSibling (self, name=None, attrs={}, text=None, kwargs) |
def | findNextSiblings (self, name=None, attrs={}, text=None, limit=None, kwargs) |
def | findParent (self, name=None, attrs={}, kwargs) |
def | findParents (self, name=None, attrs={}, limit=None, kwargs) |
def | findPrevious (self, name=None, attrs={}, text=None, kwargs) |
def | findPreviousSibling (self, name=None, attrs={}, text=None, kwargs) |
def | findPreviousSiblings (self, name=None, attrs={}, text=None, limit=None, kwargs) |
def | insert (self, position, newChild) |
def | nextGenerator (self) |
def | nextSiblingGenerator (self) |
def | parentGenerator (self) |
def | previousGenerator (self) |
def | previousSiblingGenerator (self) |
def | replaceWith (self, replaceWith) |
def | replaceWithChildren (self) |
def | setup (self, parent=None, previous=None) |
def | substituteEncoding (self, str, encoding=None) |
def | toEncoding (self, s, encoding=None) |
Additional Inherited Members | |
Public Attributes inherited from BeautifulSoup.PageElement | |
next | |
nextSibling | |
parent | |
previous | |
previousSibling | |
Definition at line 449 of file BeautifulSoup.py.
def BeautifulSoup.NavigableString.__getattr__ | ( | self, | |
attr | |||
) |
text.string gives you text. This is for backwards compatibility for Navigable*String, but for CData* it lets you get the string without the CData wrapper.
Definition at line 466 of file BeautifulSoup.py.
Referenced by VarParsing.VarParsing.setType().
def BeautifulSoup.NavigableString.__getnewargs__ | ( | self | ) |
Definition at line 463 of file BeautifulSoup.py.
def BeautifulSoup.NavigableString.__new__ | ( | cls, | |
value | |||
) |
Create a new NavigableString. When unpickling a NavigableString, this method is called with the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be passed in to the superclass's __new__ or the superclass won't know how to handle non-ASCII characters.
Definition at line 451 of file BeautifulSoup.py.
Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().
def BeautifulSoup.NavigableString.__str__ | ( | self, | |
encoding = DEFAULT_OUTPUT_ENCODING |
|||
) |
Definition at line 478 of file BeautifulSoup.py.
References BeautifulSoup.PageElement._sub_entity().
Referenced by edmStreamStallGrapher.Point.__repr__(), BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().
def BeautifulSoup.NavigableString.__unicode__ | ( | self | ) |