Skip to content
Snippets Groups Projects
Commit 0b7f2c3f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

escape & in HTML messages.

parent f11c1b22
No related branches found
No related tags found
No related merge requests found
......@@ -217,6 +217,7 @@ class MessageTextView(gtk.TextView):
def xhtml_special(text):
text = text.replace('<', '&lt;')
text = text.replace('>', '&gt;')
text = text.replace('&', '&amp;')
text = text.replace('\n', '<br />')
return text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment