diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-24 03:25:55 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-24 03:25:55 -0700 |
commit | 9a08dfc7d4320638256a58daf6e02a433f1ee91c (patch) | |
tree | 23e1bf5316d01e10a1a5f44018689489661d8b5f /sleekxmpp/xmlstream/xmlstream.py | |
parent | 3e43b36a9d70801d90a6b09046f93879f2e29b89 (diff) | |
download | slixmpp-9a08dfc7d4320638256a58daf6e02a433f1ee91c.tar.gz slixmpp-9a08dfc7d4320638256a58daf6e02a433f1ee91c.tar.bz2 slixmpp-9a08dfc7d4320638256a58daf6e02a433f1ee91c.tar.xz slixmpp-9a08dfc7d4320638256a58daf6e02a433f1ee91c.zip |
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
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 4 |
1 files changed, 4 insertions, 0 deletions
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. |