Add escaping of the quote. Should now handle all aspects of #1002.
This commit is contained in:
parent
1d81212a8e
commit
69a5258fda
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ class TextToHTMLparser(object):
|
||||||
text (str): Processed text.
|
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="#" ''' \
|
val = r'''<a id="mxplink" href="#" ''' \
|
||||||
'''onclick="Evennia.msg("text",["{cmd}"],{{}});''' \
|
'''onclick="Evennia.msg("text",["{cmd}"],{{}});''' \
|
||||||
'''return false;">{text}</a>'''.format(cmd=cmd, text=text)
|
'''return false;">{text}</a>'''.format(cmd=cmd, text=text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue