Skip to content

Instantly share code, notes, and snippets.

@sleduc
Created August 18, 2018 19:28
Show Gist options
  • Select an option

  • Save sleduc/f373e37d2b46a7a52ac4ce073cd27309 to your computer and use it in GitHub Desktop.

Select an option

Save sleduc/f373e37d2b46a7a52ac4ce073cd27309 to your computer and use it in GitHub Desktop.
diff --git a/xhtml/__init__.py b/xhtml/__init__.py
index 9310d47..645a31a 100644
--- a/xhtml/__init__.py
+++ b/xhtml/__init__.py
@@ -17,6 +17,6 @@ class CmdXhtml(SyncModule):
@defaultcmd
def answer(self, sender, message):
d = {}
- d["text"] = message
- d["xhtml"] = pipobot.lib.utils.xhtml2text(message)
+ d["xhtml"] = message
+ d["text"] = pipobot.lib.utils.xhtml2text(message)
return d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment