diff options
Diffstat (limited to 'gotr')
-rw-r--r-- | gotr/otrmodule.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gotr/otrmodule.py b/gotr/otrmodule.py index 72bf190..a61b522 100644 --- a/gotr/otrmodule.py +++ b/gotr/otrmodule.py @@ -607,6 +607,8 @@ class OtrPlugin(GajimPlugin): stripper.feed((msgtxt or '').decode('utf8')) event.msgtxt = stripper.stripped_data event.stanza.setBody(event.msgtxt) + if event.stanza.getXHTML(): + event.stanza.delChild('html') event.stanza.setXHTML((msgtxt or '').decode('utf8')) return PASS |