6.3.5 Text Objects

class Text()

This is the node type used for all text data in a document object. Unlike XML DOM text nodes, text nodes in plasTeX are not mutable. This is because they are a subclass of unicode . This means that they will respond to all of the standard Python string methods in addition to the Node methods and the methods described below.

data

the text content of the node

length

the length of the text content

nodeValue

the text content of the node

wholeText

returns the text content from the current text node as well as its siblings