Escape <, > and & when MXP is enabled.
This commit is contained in:
parent
1bcd9abc6b
commit
fb7ac49253
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ def mxp_parse(text):
|
||||||
"""
|
"""
|
||||||
Replaces links to the correct format for MXP.
|
Replaces links to the correct format for MXP.
|
||||||
"""
|
"""
|
||||||
|
text = text.replace("&", "&") \
|
||||||
|
.replace("<", "<") \
|
||||||
|
.replace(">", ">")
|
||||||
|
|
||||||
text = LINKS_SUB.sub(MXP_SEND, text)
|
text = LINKS_SUB.sub(MXP_SEND, text)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue