CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
BeautifulSoup.NavigableString Class Reference
Inheritance diagram for BeautifulSoup.NavigableString:
BeautifulSoup.PageElement BeautifulSoup.CData BeautifulSoup.Comment BeautifulSoup.Declaration BeautifulSoup.ProcessingInstruction

Public Member Functions

def __getattr__
 
def __getnewargs__
 
def __new__
 
def __str__
 
def __unicode__
 

Detailed Description

Definition at line 449 of file BeautifulSoup.py.

Member Function Documentation

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.

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.

def BeautifulSoup.NavigableString.__str__ (   self,
  encoding = DEFAULT_OUTPUT_ENCODING 
)

Definition at line 478 of file BeautifulSoup.py.

def BeautifulSoup.NavigableString.__unicode__ (   self)

Definition at line 475 of file BeautifulSoup.py.