Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nbxmpp/const.py')
-rw-r--r--nbxmpp/const.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nbxmpp/const.py b/nbxmpp/const.py
index 4904e66..d37ba64 100644
--- a/nbxmpp/const.py
+++ b/nbxmpp/const.py
@@ -652,3 +652,12 @@ GIO_TLS_ERRORS = {
Gio.TlsCertificateFlags.EXPIRED: 'The certificate has expired',
}
# pylint: enable=line-too-long
+
+NOT_ALLOWED_XML_CHARS = {
+ '&': '&',
+ '<': '&lt;',
+ '>': '&gt;',
+ '"': '&quot;',
+ '\x0C': '',
+ '\x1B': ''
+}