summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/rainbow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/rainbow.py b/plugins/rainbow.py
index 838c91f4..0f242027 100644
--- a/plugins/rainbow.py
+++ b/plugins/rainbow.py
@@ -1,4 +1,5 @@
from plugin import BasePlugin
+import xhtml
import random
possible_colors = list(range(256))
@@ -16,4 +17,4 @@ class Plugin(BasePlugin):
self.add_poezio_event_handler('conversation_say', self.rainbowize)
def rainbowize(self, msg):
- msg['body'] = ''.join(['%s%s' % (rand_color(),char,) for char in msg['body']])
+ msg['body'] = ''.join(['%s%s' % (rand_color(),char,) for char in xhtml.clean_text(msg['body'])])