From 9a08dfc7d4320638256a58daf6e02a433f1ee91c Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 24 Jul 2012 03:25:55 -0700 Subject: Add support for using CDATA for escaping. CDATA escaping is disabled by default, but may be enabled by setting: self.use_cdata = True Closes issue #114 --- sleekxmpp/xmlstream/xmlstream.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sleekxmpp/xmlstream/xmlstream.py') diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 81b9209f..a0b6e4c2 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -212,6 +212,10 @@ class XMLStream(object): #: If set to ``True``, attempt to use IPv6. self.use_ipv6 = True + #: Use CDATA for escaping instead of XML entities. Defaults + #: to ``False``. + self.use_cdata = False + #: An optional dictionary of proxy settings. It may provide: #: :host: The host offering proxy services. #: :port: The port for the proxy service. -- cgit v1.2.3