From 69a5258fda7f04acccb4c67b9a5db8070121393e Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 6 Nov 2016 08:57:23 +0100 Subject: [PATCH] Add escaping of the quote. Should now handle all aspects of #1002. --- evennia/utils/text2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/utils/text2html.py b/evennia/utils/text2html.py index c25aaa69d6..0527fcb038 100644 --- a/evennia/utils/text2html.py +++ b/evennia/utils/text2html.py @@ -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'''{text}'''.format(cmd=cmd, text=text)