text

returns the text content.

Source


def text(self):
    if self._name != 'comment':
        ret = ''
        size = len(self._text)
        if size != 0:
            for t in self._text:
                ret += t
        return ret
    else:
        return self.comment()