def escape(self):
if not self.escaped:<EOL><INDENT>post = sax.encoder.encode(self)<EOL>escaped = ( post != self )<EOL>return Text(post, lang=self.lang, escaped=escaped)<EOL><DEDENT>return self<EOL>
Encode (escape) special XML characters.
@return: The text with XML special characters escaped.
@rtype: L{Text}