mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
text2html.py Use double quotes in HTML MXP link
This just changes the problem from not escaping single quotes properly to not escaping double quotes when supplied in the MXP command or text.
This commit is contained in:
parent
ecb82a2a23
commit
501c9f73a1
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ class TextToHTMLparser(object):
|
|||
text (str): Processed text.
|
||||
|
||||
"""
|
||||
return self.re_mxplink.sub(r"""<a id='mxplink' href='#' onclick='Evennia.msg("text",["\1"],{}); return false;'>\2</a>""", text)
|
||||
return self.re_mxplink.sub(r'''<a id="mxplink" href="#" onclick="Evennia.msg("text",["\1"],{}); return false;">\2</a>''', text)
|
||||
|
||||
def do_sub(self, match):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue