summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logger.py b/src/logger.py
index 4078c46a..ad615f9b 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -19,6 +19,7 @@ from os import environ, makedirs
import os
from datetime import datetime
from config import config
+from xhtml import clean_text
import logging
@@ -70,6 +71,7 @@ class Logger(object):
if not fd:
return
try:
+ msg = clean_text(msg)
if nick:
fd.write(datetime.now().strftime('%d-%m-%y [%H:%M:%S] ')+nick+': '+msg+'\n')
else: