import re
+from cgi import escape
from datetime import datetime
# Map of special chars to ascii from Darkplace's console.c.
def html_colors(qstr=''):
- qstr = qfont_decode(qstr)
+ qstr = escape(qfont_decode(qstr))
def dec_repl(match):
return _dec_spans[int(match.group(1))]
qstr = qstr.replace('^^', '^')