escape & in HTML messages.
This commit is contained in:
parent
f11c1b226a
commit
0b7f2c3fe7
|
@ -217,6 +217,7 @@ class MessageTextView(gtk.TextView):
|
|||
def xhtml_special(text):
|
||||
text = text.replace('<', '<')
|
||||
text = text.replace('>', '>')
|
||||
text = text.replace('&', '&')
|
||||
text = text.replace('\n', '<br />')
|
||||
return text
|
||||
|
||||
|
|
Loading…
Reference in New Issue