Add escaping of the quote. Should now handle all aspects of #1002.

This commit is contained in:
Griatch 2016-11-06 08:57:23 +01:00
parent 1d81212a8e
commit 69a5258fda

View file

@ -244,7 +244,7 @@ class TextToHTMLparser(object):
text (str): Processed text.
"""
cmd, text = [grp.replace('\"', """) for grp in match.groups()]
cmd, text = [grp.replace('\"', "\\"") for grp in match.groups()]
val = r'''<a id="mxplink" href="#" ''' \
'''onclick="Evennia.msg(&quot;text&quot;,[&quot;{cmd}&quot;],{{}});''' \
'''return false;">{text}</a>'''.format(cmd=cmd, text=text)