Escape <, > and & when MXP is enabled.

This commit is contained in:
Simon Vermeersch 2014-10-14 18:27:58 +02:00
parent 1bcd9abc6b
commit fb7ac49253

View file

@ -28,6 +28,10 @@ def mxp_parse(text):
"""
Replaces links to the correct format for MXP.
"""
text = text.replace("&", "&amp;") \
.replace("<", "&lt;") \
.replace(">", "&gt;")
text = LINKS_SUB.sub(MXP_SEND, text)
return text