Merge branch 'patch-1' of https://github.com/BlauFeuer/evennia into BlauFeuer-patch-1

This commit is contained in:
Griatch 2016-11-05 22:14:57 +01:00
commit 3de2e649a1
2 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ LINKS_SUB = re.compile(r'\|lc(.*?)\|lt(.*?)\|le', re.DOTALL)
MXP = "\x5B"
MXP_TEMPSECURE = "\x1B[4z"
MXP_SEND = MXP_TEMPSECURE + \
"<SEND HREF='\\1'>" + \
"<SEND HREF=\"\\1\">" + \
"\\2" + \
MXP_TEMPSECURE + \
"</SEND>"
@ -38,6 +38,7 @@ def mxp_parse(text):
"""
text = text.replace("&", "&amp;") \
.replace('"', "&quot;") \
.replace("<", "&lt;") \
.replace(">", "&gt;")