Get the element's L{Text} content with optional default @param default: A value to be returned when no text content exists. @type default: basestring @return: The text content, or I{default} @rtype: L{Text}
(self, default=None)
| 249 | return self |
| 250 | |
| 251 | def getText(self, default=None): |
| 252 | """ |
| 253 | Get the element's L{Text} content with optional default |
| 254 | @param default: A value to be returned when no text content exists. |
| 255 | @type default: basestring |
| 256 | @return: The text content, or I{default} |
| 257 | @rtype: L{Text} |
| 258 | """ |
| 259 | if self.hasText(): |
| 260 | return self.text |
| 261 | else: |
| 262 | return default |
| 263 | |
| 264 | def trim(self): |
| 265 | """ |
no test coverage detected