diff --git a/src/tabs.py b/src/tabs.py index 9291654f..e3d2de36 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -437,6 +437,8 @@ class ChatTab(Tab): return try: body = xhtml.clean_text(xhtml.xhtml_to_poezio_colors(arg)) + # The element is the only allowable child of the + arg = "%s" % (arg,) ET.fromstring(arg) except: self.core.information('Could not send custom xhtml', 'Error')