- Re fixed sanitizing

This commit is contained in:
trigg 2020-10-20 18:58:06 +00:00
parent e6045a9244
commit 00ebe352ac

View file

@ -303,9 +303,9 @@ class TextOverlayWindow(OverlayWindow):
"""
Sanitize a text message so that it doesn't intefere with Pango's XML format
"""
string.replace("&", "&")
string.replace("<", "&lt;")
string .replace(">", "&gt;")
string.replace("'", "&#39;")
string.replace("\"", "&#34;")
string = string.replace("&", "&amp;")
string = string.replace("<", "&lt;")
string = string .replace(">", "&gt;")
string = string.replace("'", "&#39;")
string = string.replace("\"", "&#34;")
return string